fixed moving device

This commit is contained in:
hannathkadher
2025-01-29 11:53:28 +04:00
parent 903533cd86
commit 3366f525ef
4 changed files with 274 additions and 34 deletions

View File

@ -356,16 +356,26 @@ export class SpaceService {
}
if (hasSubspace) {
await this.subSpaceService.modifySubSpace(
const modifiedSubspaces = this.tagService.getModifiedSubspaces(
updateSpaceDto.tags,
updateSpaceDto.subspace,
);
await this.subSpaceService.modifySubSpace(
modifiedSubspaces,
queryRunner,
space,
);
}
if (hasTags) {
await this.tagService.modifyTags(
const spaceTagsAfterMove = this.tagService.getSubspaceTagsToBeAdded(
updateSpaceDto.tags,
updateSpaceDto.subspace,
);
await this.tagService.modifyTags(
spaceTagsAfterMove,
queryRunner,
space,
);