Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/improve handling of activities without account (#3060)
Thomas Kaul3615e2f0571e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2020f58d05..b81f59c7c0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## Unreleased+### Changed++- Improved the handling of activities without account+### Fixed- Fixed the query to filter activities of excluded accountsdiff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.tsindex 3fafa6795e..92461dce86 100644--- a/apps/api/src/app/portfolio/portfolio.service.ts+++ b/apps/api/src/app/portfolio/portfolio.service.ts@@ -749,7 +749,9 @@ export class PortfolioService {} = position;const accounts: PortfolioPositionDetail['accounts'] = uniqBy(- orders,+ orders.filter(({ Account }) => {+ return Account;+ }),'Account.id').map(({ Account }) => {return Account;