Skip to content

Commit

Permalink
refactor: #43 last edit
Browse files Browse the repository at this point in the history
  • Loading branch information
dyk-im committed Nov 14, 2024
1 parent 35d779c commit 957859c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public static CommentResponseDto from(Comment comment, boolean isOwner, CommentS
if (depth <= 0 || comment == null) { // 깊이 제한 또는 null일 때 호출 중단
return CommentResponseDto.builder()
.commentId(comment.getCommentId())
.userName(comment.getArticle().getWriter().getUserName())
.customId(comment.getArticle().getWriter().getCustomId())
.userName(comment.getWriter().getUserName())
.customId(comment.getWriter().getCustomId())
.content(comment.getContent())
.deletedStatus(comment.getDeletedStatus())
.viewCnt(comment.getViewCnt())
Expand All @@ -62,8 +62,8 @@ public static CommentResponseDto from(Comment comment, boolean isOwner, CommentS

return CommentResponseDto.builder()
.commentId(comment.getCommentId())
.userName(comment.getArticle().getWriter().getUserName())
.customId(comment.getArticle().getWriter().getCustomId())
.userName(comment.getWriter().getUserName())
.customId(comment.getWriter().getCustomId())
.content(comment.getContent())
.deletedStatus(comment.getDeletedStatus())
.viewCnt(comment.getViewCnt())
Expand Down

0 comments on commit 957859c

Please sign in to comment.