Browse Source
Bugix/fix dividend import from data provider for holdings without account (#3606)
* Fix dividend import for holdings without account
* Update changelog
pull/3615/head
Thomas Kaul
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
3 deletions
-
CHANGELOG.md
-
apps/api/src/app/import/import.service.ts
|
|
@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed the dividend import from a data provider for holdings without an account |
|
|
|
- Fixed an issue in the public page related to a non-existent access |
|
|
|
|
|
|
|
## 2.97.0 - 2024-07-20 |
|
|
|
|
|
@ -72,9 +72,13 @@ export class ImportService { |
|
|
|
}) |
|
|
|
]); |
|
|
|
|
|
|
|
const accounts = orders.map((order) => { |
|
|
|
return order.Account; |
|
|
|
}); |
|
|
|
const accounts = orders |
|
|
|
.filter(({ Account }) => { |
|
|
|
return !!Account; |
|
|
|
}) |
|
|
|
.map(({ Account }) => { |
|
|
|
return Account; |
|
|
|
}); |
|
|
|
|
|
|
|
const Account = this.isUniqueAccount(accounts) ? accounts[0] : undefined; |
|
|
|
|
|
|
|