mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:54:54 +00:00
fixed unliking tags on tags created via space models
This commit is contained in:
@ -500,6 +500,13 @@ export class SpaceService {
|
|||||||
await this.subSpaceService.unlinkModels(space.subspaces, queryRunner);
|
await this.subSpaceService.unlinkModels(space.subspaces, queryRunner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hasTags && space.productAllocations && space.spaceModel) {
|
||||||
|
await this.spaceProductAllocationService.unlinkModels(
|
||||||
|
space,
|
||||||
|
queryRunner,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (hasSubspace) {
|
if (hasSubspace) {
|
||||||
await this.subSpaceService.modifySubSpace(
|
await this.subSpaceService.modifySubSpace(
|
||||||
updateSpaceDto.subspace,
|
updateSpaceDto.subspace,
|
||||||
|
|||||||
Reference in New Issue
Block a user