diff --git a/src/space/services/space.service.ts b/src/space/services/space.service.ts index e27d43b..682292c 100644 --- a/src/space/services/space.service.ts +++ b/src/space/services/space.service.ts @@ -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,