on moving a space from subspace, or subspace to subspace, set space is null

This commit is contained in:
hannathkadher
2025-02-19 13:06:00 +04:00
parent 19ef10aa87
commit 4adb1e683d

View File

@ -84,7 +84,7 @@ export class SubspaceDeviceService {
if (device.tag?.subspace?.uuid !== subspace.uuid) { if (device.tag?.subspace?.uuid !== subspace.uuid) {
await this.tagRepository.update( await this.tagRepository.update(
{ uuid: device.tag.uuid }, { uuid: device.tag.uuid },
{ subspace }, { subspace, space: null },
); );
} }