Skip to content

Commit

Permalink
fix: 게시글 수정 시 반환 형식 { id: string }으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kmi0817 committed Dec 4, 2023
1 parent 1e81faa commit e4cd208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions BE/src/postings/posting.swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ export const search_OK = [

export const create_OK = { id: 'c89f207a-f528-4d53-8ac2-1356fa22eb21' };

export const update_OK = {
generatedMaps: [],
raw: [],
affected: 1,
};
export const update_OK = { id: '4d365e7c-3e82-472d-bf87-7faf65d9377d' };

export const remove_OK = {
title: 'bread lover',
Expand Down
3 changes: 2 additions & 1 deletion BE/src/postings/postings.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export class PostingsController {
@Body() updatePostingDto: UpdatePostingDto
) {
const userId = request['user'].id;
return this.postingsService.update(id, userId, updatePostingDto);
await this.postingsService.update(id, userId, updatePostingDto);
return { id };
}

@Delete(':id')
Expand Down

0 comments on commit e4cd208

Please sign in to comment.