Skip to content

Commit

Permalink
Merge pull request #98 from ho0010/dev
Browse files Browse the repository at this point in the history
Feat: getDebate parentCommentId
  • Loading branch information
ho0010 authored Aug 16, 2024
2 parents cce1959 + e79925a commit f68ca80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public static class CommentResponse {
private Timestamp createAt;
private long commentHeartCount;
private boolean userHearted;
private Long parentCommentId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public GetDebateResponse getDebate(Long debateId, String token) {
.createAt(comment.getCreateAt())
.commentHeartCount(comment.getCommentHearts().size())
.userHearted(userHearted)
.parentCommentId(comment.getParentComment() != null ? comment.getParentComment().getCommentId() : null)
.build();
})
.toList();
Expand Down

0 comments on commit f68ca80

Please sign in to comment.