mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-26 06:49:39 +00:00
Refactor controllers to return UUID of added entities
This commit is contained in:
@ -34,10 +34,11 @@ export class CommunityService {
|
||||
},
|
||||
});
|
||||
|
||||
await this.spaceRepository.save({
|
||||
const community = await this.spaceRepository.save({
|
||||
spaceName: addCommunityDto.communityName,
|
||||
spaceType: { uuid: spaceType.uuid },
|
||||
});
|
||||
return community;
|
||||
} catch (err) {
|
||||
throw new HttpException(err.message, HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
Reference in New Issue
Block a user