fix issues in deleting from space model product allocation and space product allocation

This commit is contained in:
hannathkadher
2025-03-06 11:01:08 +04:00
parent ed406addb8
commit 07828eafd7
2 changed files with 8 additions and 6 deletions

View File

@ -337,12 +337,13 @@ export class SpaceModelProductAllocationService {
.delete()
.from('space_model_product_tags')
.where(
'space_model_product_allocation_id NOT IN ' +
'space_model_product_allocation_uuid NOT IN (' +
queryRunner.manager
.createQueryBuilder()
.select('uuid')
.select('allocation.uuid')
.from(SpaceModelProductAllocationEntity, 'allocation')
.getQuery(),
.getQuery() +
')',
)
.execute();

View File

@ -195,12 +195,13 @@ export class SpaceProductAllocationService {
.delete()
.from('space_product_tags')
.where(
'space_product_allocation_id NOT IN ' +
'space_product_allocation_uuid NOT IN (' +
queryRunner.manager
.createQueryBuilder()
.select('uuid')
.select('allocation.uuid')
.from(SpaceProductAllocationEntity, 'allocation')
.getQuery(),
.getQuery() +
')',
)
.execute();