Skip to content

Commit

Permalink
feat: role 포함하지 않는 ParticipantResponse 생성자 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ay-eonii committed Oct 17, 2024
1 parent 9132224 commit 2a55bd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ public record ParticipantResponse(
String profile,
String role
) {

public ParticipantResponse(String nickname, String profile) {
this(nickname, profile, null);
}
}

0 comments on commit 2a55bd9

Please sign in to comment.