From bd0e53525bb5c25b5486aaa72a848efd91a98823 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Wed, 28 Jul 2021 16:17:02 +0200 Subject: [PATCH] Refactoring --- apps/api/src/app/core/portfolio-calculator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/core/portfolio-calculator.ts b/apps/api/src/app/core/portfolio-calculator.ts index e0cd2633d..f51e0b3c5 100644 --- a/apps/api/src/app/core/portfolio-calculator.ts +++ b/apps/api/src/app/core/portfolio-calculator.ts @@ -363,10 +363,10 @@ export class PortfolioCalculator { currencies, userCurrency: this.currency }); - } catch (e) { + } catch (error) { console.error( - `failed to fetch info for date ${startDate} with exception`, - e + `Failed to fetch info for date ${startDate} with exception`, + error ); return null; }