mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:54:55 +00:00
fix bug in community
This commit is contained in:
@ -62,10 +62,11 @@ export class SpaceService {
|
|||||||
await queryRunner.connect();
|
await queryRunner.connect();
|
||||||
await queryRunner.startTransaction();
|
await queryRunner.startTransaction();
|
||||||
|
|
||||||
const community = await this.validationService.validateCommunityAndProject(
|
const { community } =
|
||||||
communityUuid,
|
await this.validationService.validateCommunityAndProject(
|
||||||
projectUuid,
|
communityUuid,
|
||||||
);
|
projectUuid,
|
||||||
|
);
|
||||||
|
|
||||||
this.validateSpaceCreation(addSpaceDto, spaceModelUuid);
|
this.validateSpaceCreation(addSpaceDto, spaceModelUuid);
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ export class SpaceService {
|
|||||||
: null;
|
: null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log('jnkjn', community);
|
||||||
const space = queryRunner.manager.create(SpaceEntity, {
|
const space = queryRunner.manager.create(SpaceEntity, {
|
||||||
...addSpaceDto,
|
...addSpaceDto,
|
||||||
spaceModel,
|
spaceModel,
|
||||||
|
|||||||
Reference in New Issue
Block a user