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() .delete()
.from('space_model_product_tags') .from('space_model_product_tags')
.where( .where(
'space_model_product_allocation_id NOT IN ' + 'space_model_product_allocation_uuid NOT IN (' +
queryRunner.manager queryRunner.manager
.createQueryBuilder() .createQueryBuilder()
.select('uuid') .select('allocation.uuid')
.from(SpaceModelProductAllocationEntity, 'allocation') .from(SpaceModelProductAllocationEntity, 'allocation')
.getQuery(), .getQuery() +
')',
) )
.execute(); .execute();

View File

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