diff --git a/src/space/services/space-validation.service.ts b/src/space/services/space-validation.service.ts index f8db191..dff32f8 100644 --- a/src/space/services/space-validation.service.ts +++ b/src/space/services/space-validation.service.ts @@ -45,14 +45,15 @@ export class ValidationService { await this.communityService.validateProject(projectUuid); const spaces = await this.spaceRepository.find({ where: { uuid: In(spacesUuids), disabled: false }, - relations: ['devices', 'subspaces', 'productAllocations'], + relations: ['devices', 'subspaces', 'productAllocations', 'spaceModel'], }); const hasInvalidSpaces = spaces.some( (space) => space.devices.length > 0 || space.subspaces.length > 0 || - space.productAllocations.length > 0, + space.productAllocations.length > 0 || + space.spaceModel, ); if (hasInvalidSpaces) {