mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
delete propogation
This commit is contained in:
@ -30,7 +30,6 @@ export class ValidationService {
|
||||
return { community: community.data, project: project };
|
||||
}
|
||||
|
||||
|
||||
async validateSpaceWithinCommunityAndProject(
|
||||
communityUuid: string,
|
||||
projectUuid: string,
|
||||
@ -44,7 +43,14 @@ export class ValidationService {
|
||||
async validateSpace(spaceUuid: string): Promise<SpaceEntity> {
|
||||
const space = await this.spaceRepository.findOne({
|
||||
where: { uuid: spaceUuid, disabled: false },
|
||||
relations: ['subspaces', 'tags'],
|
||||
relations: [
|
||||
'parent',
|
||||
'children',
|
||||
'subspaces',
|
||||
'tags',
|
||||
'subspaces.tags',
|
||||
'devices',
|
||||
],
|
||||
});
|
||||
|
||||
if (!space) {
|
||||
|
Reference in New Issue
Block a user