From a4b3bab290b6fbcf426452072ddcba261233a83a Mon Sep 17 00:00:00 2001 From: yulmam <70622601+yulmam@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:47:01 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20board=20name=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/edufocus/edufocus/board/entity/vo/Board.java | 2 +- .../java/com/edufocus/edufocus/board/entity/vo/Comment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java index 98df363..ff8d039 100644 --- a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java +++ b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java @@ -62,7 +62,7 @@ public class Board { return ResponseBoardSummaryDto.builder() .id(id) .title(title) - .name(user.getUserId()) + .name(user.getName()) .createdAt(createdAt) .build(); } diff --git a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Comment.java b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Comment.java index ef311a0..d7c97c2 100644 --- a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Comment.java +++ b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Comment.java @@ -42,7 +42,7 @@ public class Comment { public ResponseCommentDto makeCommentDto() { return ResponseCommentDto.builder() .id(id) - .name(user.getEmail()) + .name(user.getName()) .content(content) .createAt(createdAt) .modifiedAt(modifiedAt)