Skip to content

Commit

Permalink
Merge pull request #119 from c0smosaur/dev
Browse files Browse the repository at this point in the history
[FIX] comment response - name changed to username
  • Loading branch information
c0smosaur authored Jun 11, 2024
2 parents 96776a4 + 2fddc26 commit ba66249
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public record ClubCommentResponse(
String comment,
Long clubNoticeId,
Long clubMemberId,
String clubMemberName,
String clubMemberUsername,
String clubMemberThumbnail,
OccupationType clubMemberOccupation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {

Expand Down

0 comments on commit ba66249

Please sign in to comment.