From ce73fb52d8fe5d74456e403933c944581f8543de Mon Sep 17 00:00:00 2001 From: Jeong Jiho Date: Wed, 23 Oct 2024 17:45:01 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20fix:=20=EC=A0=95=EC=9B=90=EC=9D=B4=20?= =?UTF-8?q?=EA=B0=80=EB=93=9D=20=EC=B0=AC=20=EB=AA=A8=EC=9E=84=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=EB=A5=BC=20OPEN=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EA=B0=80=EB=8A=A5=ED=95=9C=20=ED=98=84=EC=83=81=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#710)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/happy/friendogly/club/domain/Club.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/happy/friendogly/club/domain/Club.java b/backend/src/main/java/com/happy/friendogly/club/domain/Club.java index 1563c8d95..f4cbec82d 100644 --- a/backend/src/main/java/com/happy/friendogly/club/domain/Club.java +++ b/backend/src/main/java/com/happy/friendogly/club/domain/Club.java @@ -267,7 +267,7 @@ public void update(String title, String content, String status) { } private void updateStatus(String status) { - if (this.status.isFull() && Status.toStatus(status).isOpen()) { + if (memberCapacity.isCapacityReached(countClubMember()) && Status.toStatus(status).isOpen()) { throw new FriendoglyException("인원이 가득찬 모임은 다시 OPEN 상태로 변경할 수 없습니다."); } this.status = Status.toStatus(status);