Skip to content

Commit

Permalink
fix: 응답 형식 컨벤션이 맞지 않는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ksk0605 committed Oct 15, 2024
1 parent 5ca25b8 commit db42477
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public ResponseEntity<RestResponse<ChatPreviewResponses>> findChatPreviews(
}

@PatchMapping("/open")
public ResponseEntity<Long> openChatRoom(
public ResponseEntity<RestResponse<Long>> openChatRoom(
@PathVariable Long darakbangId,
@LoginDarakbangMember DarakbangMember darakbangMember,
@RequestParam("moimId") Long moimId
) {
long chatRoomId = chatRoomService.openChatRoom(darakbangId, moimId, darakbangMember);

return ResponseEntity.ok().body(chatRoomId);
return ResponseEntity.ok().body(new RestResponse<>(chatRoomId));
}
}

0 comments on commit db42477

Please sign in to comment.