Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Refactoring

Thomasbd0e53525bb5
diff --git a/apps/api/src/app/core/portfolio-calculator.ts b/apps/api/src/app/core/portfolio-calculator.ts
index e0cd2633dd..f51e0b3c53 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;
}