Skip to content

Commit

Permalink
๐Ÿ”— :: (#665) ๋ฆฌ๋ทฐ ์ž‘์„ฑ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 authored May 29, 2024
2 parents 8036388 + eb63a5c commit fbe57cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public enum ApplicationStatus {
REQUESTED("์Šน์ธ ์š”์ฒญ"),
APPROVED("์Šน์ธ"),
SEND("๊ธฐ์—…์—๊ฒŒ ์ „์†ก"),
PROCESSING("์ง„ํ–‰์ค‘"),
FAILED("ํƒˆ๋ฝ"),
PASS("ํ•ฉ๊ฒฉ"),
FIELD_TRAIN("ํ˜„์žฅ์‹ค์Šต"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public void execute(Long companyId, List<QnAElement> qnAElements) {
Company company = queryCompanyPort.queryCompanyById(companyId)
.orElseThrow(() -> CompanyNotFoundException.EXCEPTION);

checkReviewExists(companyId, student.getId());

queryApplicationPort.getByCompanyIdAndStudentIdOrThrow(company.getId(), student.getId())
.checkReviewAuthority();

Expand All @@ -52,10 +50,4 @@ public void execute(Long companyId, List<QnAElement> qnAElements) {
.toList();
reviewPort.saveAllQnAs(qnAs);
}

private void checkReviewExists(Long companyId, Long studentId) {
if (reviewPort.existsByCompanyIdAndStudentId(companyId, studentId)) {
throw ReviewAlreadyExistsException.EXCEPTION;
}
}
}

0 comments on commit fbe57cb

Please sign in to comment.