Browse Source

Improve automatic deletion of unused asset profiles

pull/4149/head
Thomas Kaul 8 months ago
parent
commit
383022c043
  1. 5
      apps/api/src/app/order/order.service.ts

5
apps/api/src/app/order/order.service.ts

@ -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);
} }

Loading…
Cancel
Save