Browse Source
Feature/improve automatic deletion of unused asset profiles (#4149)
* Improve automatic deletion of unused asset profiles
* Update changelog
pull/4155/head
Thomas Kaul
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
4 deletions
-
CHANGELOG.md
-
apps/api/src/app/order/order.service.ts
|
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Improved support for automatic deletion of unused asset profiles when deleting activities |
|
|
- Improved the language localization for German (`de`) |
|
|
- Improved the language localization for German (`de`) |
|
|
- Upgraded `husky` from version `9.1.6` to `9.1.7` |
|
|
- Upgraded `husky` from version `9.1.6` to `9.1.7` |
|
|
|
|
|
|
|
|
|
@ -224,10 +224,7 @@ export class OrderService { |
|
|
order.symbolProfileId |
|
|
order.symbolProfileId |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
if ( |
|
|
if (symbolProfile.activitiesCount === 0) { |
|
|
['FEE', 'INTEREST', 'ITEM', 'LIABILITY'].includes(order.type) || |
|
|
|
|
|
symbolProfile.activitiesCount === 0 |
|
|
|
|
|
) { |
|
|
|
|
|
await this.symbolProfileService.deleteById(order.symbolProfileId); |
|
|
await this.symbolProfileService.deleteById(order.symbolProfileId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|