Merge pull request #310 from SyncrowIOT/bugfix/unlik-tags-on-update-space-model

This commit is contained in:
hannathkadher
2025-03-13 11:05:13 +04:00
committed by GitHub

View File

@ -500,6 +500,13 @@ export class SpaceService {
await this.subSpaceService.unlinkModels(space.subspaces, queryRunner);
}
if (hasTags && space.productAllocations && space.spaceModel) {
await this.spaceProductAllocationService.unlinkModels(
space,
queryRunner,
);
}
if (hasSubspace) {
await this.subSpaceService.modifySubSpace(
updateSpaceDto.subspace,