delete propogation

This commit is contained in:
hannathkadher
2024-12-27 09:02:47 +04:00
parent f7b75a630a
commit fcf1964599
8 changed files with 154 additions and 111 deletions

View File

@ -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) {