mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:54:54 +00:00
fix issues in deleting from space model product allocation and space product allocation
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user