diff --git a/src/main/java/com/example/prdoit/service/comment/CommentServiceImpl.java b/src/main/java/com/example/prdoit/service/comment/CommentServiceImpl.java index b666bfc..c4cd184 100644 --- a/src/main/java/com/example/prdoit/service/comment/CommentServiceImpl.java +++ b/src/main/java/com/example/prdoit/service/comment/CommentServiceImpl.java @@ -169,7 +169,7 @@ public List getCommunityCommentList(String communit return communityTable.getCommentTable().stream().map(comment -> CommunityCommentResponseDto.builder() .commentId(comment.getCommentId()) .commentContent(comment.getCommentContent()) - .userId(comment.getContentId().getUserId().getId()) + .userId(comment.getCommunityId().getId().getId()) .commentNickname(comment.getCommentNickname()) .commentDate(comment.getCommentDate()) .communityCommentReplyResponseDtoList(comment.getCommentCommentTable().stream() @@ -178,7 +178,7 @@ public List getCommunityCommentList(String communit .commentReplyContent(reply.getCommentCommentContent()) .commentReplyNickname(reply.getUserNickname()) .commentReplyDate(reply.getCommentCommentDate()) - .userId(reply.getCommentId().getContentId().getUserId().getId()) + .userId(reply.getCommentId().getCommunityId().getId().getId()) .build()) .collect(Collectors.toList())) .build()).collect(Collectors.toList());