diff --git a/src/main/java/org/ktc2/cokaen/wouldyouin/event/application/EventService.java b/src/main/java/org/ktc2/cokaen/wouldyouin/event/application/EventService.java index 65f34c2..a425ddb 100644 --- a/src/main/java/org/ktc2/cokaen/wouldyouin/event/application/EventService.java +++ b/src/main/java/org/ktc2/cokaen/wouldyouin/event/application/EventService.java @@ -134,11 +134,9 @@ public void delete(MemberIdentifier identifier, Long eventId) { @Transactional public void changeLeftSeat(Long eventId, Integer count) { Event event = getByIdOrThrow(eventId); - if (event.getLeftSeat() < count) { + if (count > 0 && event.getLeftSeat() < count) { throw new NoLeftSeatException("남은 좌석이 부족합니다."); } - if (event.getLeftSeat() > event.getTotalSeat()) - throw new NoLeftSeatException("좌석 관련 알 수 없는 오류"); event.decreaseLeftSeat(count); }