Skip to content

Commit

Permalink
Refactor[#85] : 일정반환값 수정 (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Menhez Team <[email protected]>
  • Loading branch information
JaeyoungChoi98 and Menhez Team committed Apr 18, 2024
1 parent 52b0db6 commit 2a9a8de
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public record ClubScheduleResponse(
String location,
Long participationFee,
LocalDateTime meetAt,
Integer currentParticipation
Integer currentParticipation,
Integer maxParticipation
) {
public static ClubScheduleResponse from(ClubSchedule schedule) {
return new ClubScheduleResponse(
Expand All @@ -25,7 +26,8 @@ public static ClubScheduleResponse from(ClubSchedule schedule) {
schedule.getLocation(),
schedule.getParticipationFee(),
schedule.getMeetAt(),
schedule.getClubScheduleMemberCount()
schedule.getClubScheduleMemberCount(),
schedule.getMaxParticipation().intValue()
);
}
}

0 comments on commit 2a9a8de

Please sign in to comment.