From 7cf26f3146ae98f8eeff95912e4158e2e0acd560 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:12:48 +0300 Subject: [PATCH] Update property name to communityName --- src/community/dtos/add.community.dto.ts | 4 ++-- src/community/services/community.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {