diff --git a/src/community/dtos/add.community.dto.ts b/src/community/dtos/add.community.dto.ts index f335d3d..96dce06 100644 --- a/src/community/dtos/add.community.dto.ts +++ b/src/community/dtos/add.community.dto.ts @@ -3,12 +3,12 @@ import { IsNotEmpty, IsString } from 'class-validator'; export class AddCommunityDto { @ApiProperty({ - description: 'spaceName', + description: 'communityName', required: true, }) @IsString() @IsNotEmpty() - public spaceName: string; + public communityName: string; constructor(dto: Partial) { Object.assign(this, dto); diff --git a/src/community/services/community.service.ts b/src/community/services/community.service.ts index 81aab77..2861fe2 100644 --- a/src/community/services/community.service.ts +++ b/src/community/services/community.service.ts @@ -25,7 +25,7 @@ export class CommunityService { }); await this.spaceRepository.save({ - spaceName: addCommunityDto.spaceName, + spaceName: addCommunityDto.communityName, spaceType: { uuid: spaceType.uuid }, }); } catch (err) {