diff --git a/src/main/java/com/core/linkup/club/clubnotice/converter/ClubCommentConverter.java b/src/main/java/com/core/linkup/club/clubnotice/converter/ClubCommentConverter.java index ac1299c..2e6ce76 100644 --- a/src/main/java/com/core/linkup/club/clubnotice/converter/ClubCommentConverter.java +++ b/src/main/java/com/core/linkup/club/clubnotice/converter/ClubCommentConverter.java @@ -24,7 +24,7 @@ public ClubCommentResponse toClubCommentResponse(ClubComment clubComment, Member .clubNoticeId(clubComment.getClubNoticeId()) .comment(clubComment.getComment()) .clubMemberId(member.getId()) - .clubMemberName(member.getName()) + .clubMemberUsername(member.getUsername()) .clubMemberThumbnail(member.getProfileImage()) .clubMemberOccupation(member.getOccupation()) .build(); diff --git a/src/main/java/com/core/linkup/club/clubnotice/response/ClubCommentResponse.java b/src/main/java/com/core/linkup/club/clubnotice/response/ClubCommentResponse.java index f1e9c36..85650b7 100644 --- a/src/main/java/com/core/linkup/club/clubnotice/response/ClubCommentResponse.java +++ b/src/main/java/com/core/linkup/club/clubnotice/response/ClubCommentResponse.java @@ -10,7 +10,7 @@ public record ClubCommentResponse( String comment, Long clubNoticeId, Long clubMemberId, - String clubMemberName, + String clubMemberUsername, String clubMemberThumbnail, OccupationType clubMemberOccupation diff --git a/src/main/java/com/core/linkup/club/clubnotice/service/ClubCommentService.java b/src/main/java/com/core/linkup/club/clubnotice/service/ClubCommentService.java index 06fd839..f187e4b 100644 --- a/src/main/java/com/core/linkup/club/clubnotice/service/ClubCommentService.java +++ b/src/main/java/com/core/linkup/club/clubnotice/service/ClubCommentService.java @@ -11,8 +11,6 @@ import com.core.linkup.common.exception.BaseException; import com.core.linkup.common.response.BaseResponseStatus; import com.core.linkup.member.entity.Member; -import com.core.linkup.member.repository.MemberRepository; -import com.core.linkup.security.MemberDetails; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -29,7 +27,6 @@ public class ClubCommentService { private final ClubCommentConverter clubCommentConverter; private final ClubRepository clubRepository; private final ClubNoticeRepository clubNoticeRepository; - private final MemberRepository memberRepository; public ClubCommentResponse createComment(Member member, Long clubId, Long noticeId, ClubCommentRequest request) {