Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix exception in portfolio calculator (#4113)
Thomas Kaul0841f8bd5ba8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7c20027c85..637da61e6d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Extended the _X-ray_ page by a summary+### Fixed++- Fixed an exception in the caching of the portfolio snapshot in the portfolio calculator+## 2.126.1 - 2024-12-07### Addeddiff --git a/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts b/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.tsindex 6c0d230b0b..3f53ee04b7 100644--- a/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts+++ b/apps/api/src/app/portfolio/calculator/twr/portfolio-calculator.ts@@ -101,6 +101,7 @@ export class TWRPortfolioCalculator extends PortfolioCalculator {totalInterestWithCurrencyEffect,totalInvestment,totalInvestmentWithCurrencyEffect,+ errors: [],historicalData: [],totalLiabilitiesWithCurrencyEffect: new Big(0),totalValuablesWithCurrencyEffect: new Big(0)diff --git a/libs/common/src/lib/models/portfolio-snapshot.ts b/libs/common/src/lib/models/portfolio-snapshot.tsindex e519317110..46bd5c18f2 100644--- a/libs/common/src/lib/models/portfolio-snapshot.ts+++ b/libs/common/src/lib/models/portfolio-snapshot.ts@@ -13,7 +13,7 @@ export class PortfolioSnapshot {@Type(() => Big)currentValueInBaseCurrency: Big;- errors?: AssetProfileIdentifier[];+ errors: AssetProfileIdentifier[];hasErrors: boolean;