Feat: 이미지 폴더채로 업로드 구현 - S11P21S002-182

This commit is contained in:
kimtaesoo7 2024-09-20 13:47:54 +09:00
parent 9831e3f140
commit d176d934a5
2 changed files with 5 additions and 1 deletions

View File

@ -24,4 +24,8 @@ public enum ReviewStatus {
public boolean isApproved() { public boolean isApproved() {
return this == ReviewStatus.APPROVED; return this == ReviewStatus.APPROVED;
} }
public boolean isRequested() {
return this == ReviewStatus.REQUESTED;
}
} }

View File

@ -124,7 +124,7 @@ public class ReviewService {
throw new CustomException(ErrorCode.PARTICIPANT_EDITOR_UNAUTHORIZED); throw new CustomException(ErrorCode.PARTICIPANT_EDITOR_UNAUTHORIZED);
} }
if (reviewStatusRequest.getReviewStatus().isApproved()) { if (!reviewStatusRequest.getReviewStatus().isRequested()) {
review.assignReviewer(member); review.assignReviewer(member);
} }