mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-06-13 12:59:11 +00:00
Chore: 회의 시작 API 상태 조건 변경
This commit is contained in:
@@ -181,16 +181,11 @@ public class MeetingService implements
|
||||
// 3. 비즈니스 규칙 검증
|
||||
// TODO: 권한 검증 (생성자 또는 참석자) - userId 파라미터 필요
|
||||
|
||||
// 4. 회의 상태 확인 (SCHEDULED만 시작 가능)
|
||||
if (!"SCHEDULED".equals(meeting.getStatus())) {
|
||||
log.warn("Meeting is not in SCHEDULED status: meetingId={}, status={}",
|
||||
// 4. 회의 상태 확인 (임시로 SCHEDULED와 IN_PROGRESS 모두 시작 가능)
|
||||
if (!"SCHEDULED".equals(meeting.getStatus()) && !"IN_PROGRESS".equals(meeting.getStatus())) {
|
||||
log.warn("Meeting is not in SCHEDULED or IN_PROGRESS status: meetingId={}, status={}",
|
||||
meetingId, meeting.getStatus());
|
||||
|
||||
if ("IN_PROGRESS".equals(meeting.getStatus())) {
|
||||
throw new BusinessException(ErrorCode.INVALID_INPUT_VALUE,
|
||||
"이미 진행 중인 회의입니다");
|
||||
}
|
||||
|
||||
throw new BusinessException(ErrorCode.INVALID_INPUT_VALUE,
|
||||
"회의 상태가 올바르지 않습니다");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user