diff --git a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java index c30819eb4..2b1bf7bc5 100644 --- a/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java +++ b/backend/src/main/java/mouda/backend/chat/presentation/response/ChatFindDetailResponse.java @@ -34,6 +34,6 @@ public static ChatFindDetailResponse toResponse(ChatOwnership chatOwnership) { private static ParticipantResponse getParticipantResponse(ChatOwnership chatOwnership) { Author author = chatOwnership.getChat().getAuthor(); - return new ParticipantResponse(author.getNickname(), author.getProfile(), null); + return new ParticipantResponse(author.getNickname(), author.getProfile()); } } diff --git a/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java b/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java index 576752164..ea1d1ddcd 100644 --- a/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java +++ b/backend/src/main/java/mouda/backend/chat/presentation/response/ParticipantResponse.java @@ -5,4 +5,8 @@ public record ParticipantResponse( String profile, String role ) { + + public ParticipantResponse(String nickname, String profile) { + this(nickname, profile, null); + } }