Skip to content

Commit

Permalink
refactor: 사용자 추가 controller layer 응답 값 변경 #95
Browse files Browse the repository at this point in the history
  • Loading branch information
NaayoungKwon committed Nov 25, 2022
1 parent d5d8cd7 commit ce175f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/apps/api/src/community/community.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export class CommunityController {
) {
try {
const _id = req.user._id;
const result = await this.communityService.appendParticipantsToCommunity({
await this.communityService.appendParticipantsToCommunity({
...appendUsersToCommunityDto,
requestUser_id: _id,
});
return responseForm(200, result);
return responseForm(200, { message: '커뮤니티 사용자 추가 완료' });
} catch (error) {
this.logger.error(JSON.stringify(error.response));
throw error;
Expand Down

0 comments on commit ce175f1

Please sign in to comment.