Browse Source
Bugfix/respect filter by holding when deleting activities (#4823)
* Respect filter by holding when deleting activities
* Update changelog
pull/4824/head
Thomas Kaul
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
0 deletions
-
CHANGELOG.md
-
apps/api/src/app/order/order.controller.ts
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Respected the filter by holding when deleting activities on the portfolio activities page |
|
|
- Fixed an exception with currencies in the historical market data editor of the admin control panel |
|
|
- Fixed an exception with currencies in the historical market data editor of the admin control panel |
|
|
|
|
|
|
|
|
## 2.165.0 - 2025-05-31 |
|
|
## 2.165.0 - 2025-05-31 |
|
|
|
@ -53,14 +53,19 @@ export class OrderController { |
|
|
@Delete() |
|
|
@Delete() |
|
|
@HasPermission(permissions.deleteOrder) |
|
|
@HasPermission(permissions.deleteOrder) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
|
|
|
@UseInterceptors(TransformDataSourceInRequestInterceptor) |
|
|
public async deleteOrders( |
|
|
public async deleteOrders( |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
|
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
|
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string |
|
|
@Query('tags') filterByTags?: string |
|
|
): Promise<number> { |
|
|
): Promise<number> { |
|
|
const filters = this.apiService.buildFiltersFromQueryParams({ |
|
|
const filters = this.apiService.buildFiltersFromQueryParams({ |
|
|
filterByAccounts, |
|
|
filterByAccounts, |
|
|
filterByAssetClasses, |
|
|
filterByAssetClasses, |
|
|
|
|
|
filterByDataSource, |
|
|
|
|
|
filterBySymbol, |
|
|
filterByTags |
|
|
filterByTags |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|