From a5cf9afcf39b1b18dd18043498a26932a6ae4b63 Mon Sep 17 00:00:00 2001 From: Youngmin Park Date: Fri, 13 Oct 2023 13:09:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=88=98=EB=9D=BD=20=EC=8B=9C,=20UNLIMI?= =?UTF-8?q?TED=20=EC=83=81=ED=83=9C=EC=97=90=EC=84=9C=EB=8A=94=20=EA=B2=80?= =?UTF-8?q?=EC=82=AC=20=EC=95=88=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#71)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 이미지 업로드 기능 및 도메인 구현 (#67) * feat: reload API에 스파크 미팅/클래스 카운트 적용 (#69) * fix: 수락 시, UNLIMITED 상태에서는 검사 안하도록 수정 (#14) --- .../domain/apply/application/service/ApplyService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/onna/onnaback/domain/apply/application/service/ApplyService.java b/src/main/java/com/onna/onnaback/domain/apply/application/service/ApplyService.java index 8fb0505..c600476 100644 --- a/src/main/java/com/onna/onnaback/domain/apply/application/service/ApplyService.java +++ b/src/main/java/com/onna/onnaback/domain/apply/application/service/ApplyService.java @@ -55,9 +55,10 @@ public List getList(Member applicant) { @Transactional public String applyProcess(Long sparkId, Long applicantId, AcceptStatus acceptStatus) { MemberSparkMapping memberSparkMapping = loadApplyPort.getApply(applicantId, sparkId); - // 인원 추가 검사 - if (memberSparkMapping.getApplySpark().getMemberCount() >= memberSparkMapping.getApplySpark() - .getCapacity()) { + // 인원 추가 검사(LIMIT 상태일때) + if (memberSparkMapping.getApplySpark().getCapacityType() == CapacityType.LIMIT + && memberSparkMapping.getApplySpark().getMemberCount() >= memberSparkMapping.getApplySpark() + .getCapacity()) { throw new BaseException(ErrorCode.OVER_MEMBERCOUNT); } if (acceptStatus == AcceptStatus.ACCEPT) {