mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 09:17:55 +00:00
Update property name to communityName
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -25,7 +25,7 @@ export class CommunityService {
|
||||
});
|
||||
|
||||
await this.spaceRepository.save({
|
||||
spaceName: addCommunityDto.spaceName,
|
||||
spaceName: addCommunityDto.communityName,
|
||||
spaceType: { uuid: spaceType.uuid },
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user