Skip to content

Commit

Permalink
[fix] diaryCommentId -> commentId 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeolee committed Sep 7, 2024
1 parent 1a9eb3b commit 62cf213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class DiaryCommentReportDto {

@NotNull(message = "null 값을 가지면 안됩니다.")
private Long diaryCommentId;
private Long commentId;

private String reason;
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public BaseResponseDto<Void> reportDiary(DiaryReportDto diaryReportDto, Long use
@Transactional
public BaseResponseDto<Void> reportDiaryComment(DiaryCommentReportDto diaryCommentReportDto, Long userId) {
User user = userHelper.getUserEntity(userId);
DiaryComment diaryComment = diaryCommentHelper.getDiaryCommentEntity(diaryCommentReportDto.getDiaryCommentId());
DiaryComment diaryComment = diaryCommentHelper.getDiaryCommentEntity(diaryCommentReportDto.getCommentId());
DiaryCommentReport.createDiaryReport(diaryComment,user, diaryCommentReportDto.getReason());
return BaseResponseDto.of(SuccessCode.SUCCESS,null);
}
Expand Down

0 comments on commit 62cf213

Please sign in to comment.