Skip to content

Commit

Permalink
Merge pull request #29 from KONKUK-MAP-Service/Comment
Browse files Browse the repository at this point in the history
[Fix]: profileImage 반환수정 #29
  • Loading branch information
evergreenn authored Apr 3, 2024
2 parents 1958574 + 478c957 commit d47d608
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

@Builder
public record CommentJoinResponse (
Long commentId, String nickname, Long spotId, String comment
Long commentId, String nickname, Long spotId, String comment,String profileImage
)
{
public static CommentJoinResponse of(Comment comment){
return CommentJoinResponse.builder()
.commentId(comment.getId())
.nickname(comment.getUser().getNickname())
.profileImage(comment.getUser().getProfileimage())
.spotId(comment.getSpot().getId())
.comment(comment.getComment())
.build();
Expand Down

0 comments on commit d47d608

Please sign in to comment.