Browse Source
Bugfix/fix missing platform name in allocations by platform (#1918)
* Fix missing platform name
* Update changelog
pull/1919/head^2
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
0 deletions
-
CHANGELOG.md
-
apps/api/src/app/portfolio/portfolio.service.ts
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Fixed the missing platform name in the allocations by platform chart on the allocations page |
|
|
|
|
|
|
|
|
## 1.264.0 - 2023-05-01 |
|
|
## 1.264.0 - 2023-05-01 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
@ -1727,6 +1727,7 @@ export class PortfolioService { |
|
|
currentAccounts = await this.accountService.getAccounts(userId); |
|
|
currentAccounts = await this.accountService.getAccounts(userId); |
|
|
} else if (filters.length === 1 && filters[0].type === 'ACCOUNT') { |
|
|
} else if (filters.length === 1 && filters[0].type === 'ACCOUNT') { |
|
|
currentAccounts = await this.accountService.accounts({ |
|
|
currentAccounts = await this.accountService.accounts({ |
|
|
|
|
|
include: { Platform: true }, |
|
|
where: { id: filters[0].id } |
|
|
where: { id: filters[0].id } |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
@ -1737,6 +1738,7 @@ export class PortfolioService { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
currentAccounts = await this.accountService.accounts({ |
|
|
currentAccounts = await this.accountService.accounts({ |
|
|
|
|
|
include: { Platform: true }, |
|
|
where: { id: { in: accountIds } } |
|
|
where: { id: { in: accountIds } } |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|