Browse Source

Feature/improve handling of activities without account (#3060)

* Improve handling of activities without account

* Update changelog
pull/3061/head
Thomas Kaul 7 months ago
committed by GitHub
parent
commit
3615e2f057
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 4
      apps/api/src/app/portfolio/portfolio.service.ts

4
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 accounts

4
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;

Loading…
Cancel
Save