Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Oct 28, 2024
1 parent 6dea085 commit d99af3a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.repo.whopper.application.resume.service;

import com.repo.whopper.application.resume.usecase.SubmitMyResumeUseCase;
import com.repo.whopper.common.error.exception.ForbiddenException;
import com.repo.whopper.domain.resume.ResumeModel;
import com.repo.whopper.domain.resume.ResumeRepository;
import com.repo.whopper.application.student.component.CurrentStudent;
Expand All @@ -22,9 +23,11 @@ public void submit() {

ResumeModel newResume;
if (resume.status().equals(ResumeElementDto.Status.SUBMITTED)) {
newResume =cancelSubmit(resume);
newResume = cancelSubmit(resume);
} else if(resume.status().equals(ResumeElementDto.Status.ONGOING)) {
newResume = submit(resume);
} else {
throw ForbiddenException.EXCEPTION;
}

save(newResume);
Expand Down

0 comments on commit d99af3a

Please sign in to comment.