mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
disabling space
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { CommunityEntity } from '@app/common/modules/community/entities';
|
||||
import { SpaceEntity } from '@app/common/modules/space/entities';
|
||||
import { SpaceRepository } from '@app/common/modules/space/repositories';
|
||||
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
|
||||
@ -21,16 +20,17 @@ export class ValidationService {
|
||||
async validateCommunityAndProject(
|
||||
communityUuid: string,
|
||||
projectUuid: string,
|
||||
): Promise<CommunityEntity> {
|
||||
await this.projectService.findOne(projectUuid);
|
||||
) {
|
||||
const project = await this.projectService.findOne(projectUuid);
|
||||
const community = await this.communityService.getCommunityById({
|
||||
communityUuid,
|
||||
projectUuid,
|
||||
});
|
||||
|
||||
return community.data;
|
||||
return { community: community.data, project: project };
|
||||
}
|
||||
|
||||
|
||||
async validateSpaceWithinCommunityAndProject(
|
||||
communityUuid: string,
|
||||
projectUuid: string,
|
||||
|
Reference in New Issue
Block a user