Skip to content

Commit

Permalink
hotfix: 피드백 추가 로직 수정
Browse files Browse the repository at this point in the history
문서가 제출된 상태가 아니여도 피드백을 작성할 수 있도록 변경했습니다.
  • Loading branch information
ori0o0p committed Sep 20, 2024
1 parent 96a6ef6 commit b098a24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void addFeedback(FeedbackRequest request) {
final var resume = resumeRepository.findById(request.resumeId())
.orElseThrow(()-> ResumeNotFoundException.EXCEPTION);

if(resume.status() != ResumeElementDto.Status.SUBMITTED) throw ResumeIllegalStatusException.EXCEPTION;
if(resume.status() == ResumeElementDto.Status.RELEASED) throw ResumeIllegalStatusException.EXCEPTION;

final var teacher = currentTeacher.getTeacher();

Expand Down

0 comments on commit b098a24

Please sign in to comment.