Skip to content

Commit 981bcb7

Browse files
committed
Refactor: 세션 종료 시 시간 체크 없이 예약 완료로 변경
1 parent f39ce33 commit 981bcb7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

back/src/main/java/com/back/domain/mentoring/reservation/entity/Reservation.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.back.domain.mentoring.reservation.constant.ReservationStatus;
88
import com.back.domain.mentoring.reservation.error.ReservationErrorCode;
99
import com.back.domain.mentoring.slot.entity.MentorSlot;
10-
import com.back.global.app.AppConfig;
1110
import com.back.global.exception.ServiceException;
1211
import com.back.global.jpa.BaseEntity;
1312
import jakarta.persistence.*;
@@ -133,14 +132,6 @@ private void ensureCanComplete() {
133132
if(!this.status.canComplete()) {
134133
throw new ServiceException(ReservationErrorCode.CANNOT_COMPLETE);
135134
}
136-
// 개발·테스트 환경에서는 검증 스킵 (Swagger 테스트 허용)
137-
if (AppConfig.isDev() || AppConfig.isTest()) {
138-
return;
139-
}
140-
// 시작 이후 완료 가능 (조기 종료 허용)
141-
if (!mentorSlot.isPast()) {
142-
throw new ServiceException(ReservationErrorCode.MENTORING_NOT_STARTED);
143-
}
144135
}
145136

146137
private void ensureNotPast() {

0 commit comments

Comments
 (0)