Bugfix/fix missing platform name in allocations by platform (#1918)

* Fix missing platform name

* Update changelog
pull/1919/head^2
Thomas Kaul 1 year ago committed by GitHub
parent 9002c20165
commit c19984c3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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/),
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
### Added

@ -1727,6 +1727,7 @@ export class PortfolioService {
currentAccounts = await this.accountService.getAccounts(userId);
} else if (filters.length === 1 && filters[0].type === 'ACCOUNT') {
currentAccounts = await this.accountService.accounts({
include: { Platform: true },
where: { id: filters[0].id }
});
} else {
@ -1737,6 +1738,7 @@ export class PortfolioService {
);
currentAccounts = await this.accountService.accounts({
include: { Platform: true },
where: { id: { in: accountIds } }
});
}

Loading…
Cancel
Save