From 59d70c48c055fde81e61fe21f55b0d8925f033cb Mon Sep 17 00:00:00 2001 From: hyxklee Date: Wed, 18 Sep 2024 21:40:52 +0900 Subject: [PATCH] =?UTF-8?q?HOTIFX:=20=EC=A0=95=EA=B8=B0=20=EB=AA=A8?= =?UTF-8?q?=EC=9E=84=EC=9D=98=20=EB=A9=A4=EB=B2=84=EC=88=98=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/schedule/application/mapper/MeetingMapper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/leets/weeth/domain/schedule/application/mapper/MeetingMapper.java b/src/main/java/leets/weeth/domain/schedule/application/mapper/MeetingMapper.java index dc4d8aa1..7eb9e2fe 100644 --- a/src/main/java/leets/weeth/domain/schedule/application/mapper/MeetingMapper.java +++ b/src/main/java/leets/weeth/domain/schedule/application/mapper/MeetingMapper.java @@ -35,7 +35,11 @@ default Integer generateCode() { return new Random().nextInt(9000) + 1000; } - // 차후 필히 리팩토링 할 것. 정기모임의 멤버수 로직 변경 + /* + 차후 필히 리팩토링 할 것 + -> 정기 모임의 참여하는 인원의 멤버수를 어떻게 관리할지. + 해당 코드는 일시적인 대안책임 + */ default Integer getMemberCount(Meeting meeting) { return (int)meeting.getAttendances().stream() .filter(attendance -> !attendance.getUser().getStatus().equals(Status.BANNED))