From d176d934a586b693378f7180cbe308bd1e019d39 Mon Sep 17 00:00:00 2001 From: kimtaesoo7 Date: Fri, 20 Sep 2024 13:47:54 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=ED=8F=B4?= =?UTF-8?q?=EB=8D=94=EC=B1=84=EB=A1=9C=20=EC=97=85=EB=A1=9C=EB=93=9C=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84=20-=20S11P21S002-182?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/worlabel/domain/review/entity/ReviewStatus.java | 4 ++++ .../com/worlabel/domain/review/service/ReviewService.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/com/worlabel/domain/review/entity/ReviewStatus.java b/backend/src/main/java/com/worlabel/domain/review/entity/ReviewStatus.java index 2e71966..cd10c8d 100644 --- a/backend/src/main/java/com/worlabel/domain/review/entity/ReviewStatus.java +++ b/backend/src/main/java/com/worlabel/domain/review/entity/ReviewStatus.java @@ -24,4 +24,8 @@ public enum ReviewStatus { public boolean isApproved() { return this == ReviewStatus.APPROVED; } + + public boolean isRequested() { + return this == ReviewStatus.REQUESTED; + } } diff --git a/backend/src/main/java/com/worlabel/domain/review/service/ReviewService.java b/backend/src/main/java/com/worlabel/domain/review/service/ReviewService.java index 2843fa6..2fbdb28 100644 --- a/backend/src/main/java/com/worlabel/domain/review/service/ReviewService.java +++ b/backend/src/main/java/com/worlabel/domain/review/service/ReviewService.java @@ -124,7 +124,7 @@ public class ReviewService { throw new CustomException(ErrorCode.PARTICIPANT_EDITOR_UNAUTHORIZED); } - if (reviewStatusRequest.getReviewStatus().isApproved()) { + if (!reviewStatusRequest.getReviewStatus().isRequested()) { review.assignReviewer(member); }