Update property name to communityName

This commit is contained in:
faris Aljohari
2024-04-02 18:12:48 +03:00
parent 72756e4e08
commit 7cf26f3146
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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<AddCommunityDto>) {
Object.assign(this, dto);
+1 -1
View File
@@ -25,7 +25,7 @@ export class CommunityService {
});
await this.spaceRepository.save({
spaceName: addCommunityDto.spaceName,
spaceName: addCommunityDto.communityName,
spaceType: { uuid: spaceType.uuid },
});
} catch (err) {