mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 21:24:53 +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()
|
||||
.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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user