Skip to content

Commit

Permalink
Fix: 정적답변 2번 생성 수정, 일기 작성시 body와 응답코드가 다른 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyukjinKimm committed Aug 23, 2024
1 parent 0ac4335 commit 671e0b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public void removeReply(Long userId, int year, int month, int date) {

public Reply createStaticReply(User user, String createdDate) {
LocalDate parsedCreatedDate = LocalDate.parse(createdDate);
replyCreator.createStaticReply(user, parsedCreatedDate);
return replyCreator.createStaticReply(user, parsedCreatedDate);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public ResponseEntity<ApiResponse<DiaryResponse>> getDiary(int year, int month,
public ResponseEntity<ApiResponse<DiaryCreatedResponse>> postDiary(
@RequestHeader(Constants.AUTHORIZATION) String accessToken,
@RequestBody DiaryRequest request) {
return ResponseEntity.status(HttpStatus.OK)
return ResponseEntity.status(HttpStatus.CREATED)
.body(ApiResponse.success(SuccessType.CREATED_SUCCESS, diaryService.createDiary(request)));
}

Expand Down

0 comments on commit 671e0b9

Please sign in to comment.