Skip to content

Commit

Permalink
Merge pull request #19 from TeamUStory/feat/recommend
Browse files Browse the repository at this point in the history
fix: 댓글을 불러올때, 생성날짜 오류
  • Loading branch information
yungic authored Aug 21, 2024
2 parents 0476d9e + cd5efa1 commit 6368331
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 @@ -41,7 +41,7 @@ public CommentListResponse(Comment comment, Long userId){
// this.userId = comment.getUser().getId();
this.userNickname = comment.getUser().getNickname();
this.profileImg = comment.getUser().getProfileImgUrl();
this.createdAt = LocalDate.now();
this.createdAt = comment.getCreatedAt().toLocalDate();
this.isUpdatable = comment.getUser().getId() == userId ? 1 : 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public CommentResponse(Comment comment) {
// this.userId = comment.getUser().getId();
this.userNickname = comment.getUser().getNickname();
this.profileImg = comment.getUser().getProfileImgUrl();
this.createdAt = LocalDate.now();
this.createdAt = comment.getCreatedAt().toLocalDate();
}
}

0 comments on commit 6368331

Please sign in to comment.