Browse Source
Bugfix/handle failing database query for account find many (#2598)
* Handle issue with account.findMany() -> where: { id: { in: [ null ] } }
* Update changelog
pull/2599/head
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
3 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/portfolio.service.ts
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
- Loosened the validation in the activities import (expects values greater than or equal to 0 for `fee`, `quantity` and `unitPrice`) |
|
|
- Loosened the validation in the activities import (expects values greater than or equal to 0 for `fee`, `quantity` and `unitPrice`) |
|
|
|
|
|
- Handled an issue with a failing database query (`account.findMany()`) related to activities without account |
|
|
|
|
|
|
|
|
## 2.17.0 - 2023-11-02 |
|
|
## 2.17.0 - 2023-11-02 |
|
|
|
|
|
|
|
|
|
@ -1892,9 +1892,13 @@ export class PortfolioService { |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
const accountIds = uniq( |
|
|
const accountIds = uniq( |
|
|
orders.map(({ accountId }) => { |
|
|
orders |
|
|
return accountId; |
|
|
.filter(({ accountId }) => { |
|
|
}) |
|
|
return accountId; |
|
|
|
|
|
}) |
|
|
|
|
|
.map(({ accountId }) => { |
|
|
|
|
|
return accountId; |
|
|
|
|
|
}) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
currentAccounts = await this.accountService.accounts({ |
|
|
currentAccounts = await this.accountService.accounts({ |
|
|