Skip to content

Commit d9db5df

Browse files
authored
refactor : 댓글 이름 대신 닉네임 반환 (#381)
1 parent ec6ce20 commit d9db5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

back/src/main/java/com/back/domain/news/comment/dto/CommentResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class CommentResponse {
1717
public CommentResponse(NewsComment newsComment) {
1818
this.id = newsComment.getId();
1919
this.content = newsComment.getContent();
20-
this.author = newsComment.getMember().getName();
20+
this.author = newsComment.getMember().getNickname();
2121
this.memberId = newsComment.getMember().getId();
2222
this.createdDate = newsComment.getCreateDate();
2323
this.modifiedDate = newsComment.getModifyDate();

0 commit comments

Comments
 (0)