diff --git a/jobis-application/src/main/java/team/retum/jobis/domain/application/usecase/RejectApplicationUseCase.java b/jobis-application/src/main/java/team/retum/jobis/domain/application/usecase/RejectApplicationUseCase.java index fb93fa5b2..d5df01f95 100644 --- a/jobis-application/src/main/java/team/retum/jobis/domain/application/usecase/RejectApplicationUseCase.java +++ b/jobis-application/src/main/java/team/retum/jobis/domain/application/usecase/RejectApplicationUseCase.java @@ -20,7 +20,7 @@ public class RejectApplicationUseCase { public void execute(Long applicationId, String rejectReason) { Application application = queryApplicationPort.getByIdOrThrow(applicationId); - publishEventPort.publishEvent(new SingleApplicationStatusChangedEvent(application, ApplicationStatus.REJECTED)); commandApplicationPort.save(application.rejectApplication(rejectReason)); + publishEventPort.publishEvent(new SingleApplicationStatusChangedEvent(application, ApplicationStatus.REJECTED)); } }