Skip to content

Commit

Permalink
πŸ”— :: (#678) 진행쀑 μƒνƒœμΌλ•Œ μ•Œλ¦Ό μ•ˆκ°€κ²Œ λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo authored Jun 4, 2024
2 parents afcac6e + c69a5eb commit 14a7c92
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.transaction.event.TransactionalEventListener;
import team.retum.jobis.domain.application.event.ApplicationsStatusChangedEvent;
import team.retum.jobis.domain.application.model.Application;
import team.retum.jobis.domain.application.model.ApplicationStatus;
import team.retum.jobis.domain.auth.model.Authority;
import team.retum.jobis.domain.company.spi.QueryCompanyPort;
import team.retum.jobis.domain.notification.model.Notification;
Expand All @@ -32,6 +33,9 @@ public class ApplicationEventHandler {
@Async("asyncTaskExecutor")
@TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
public void onApplicationStatusChanged(ApplicationsStatusChangedEvent event) {
if (event.getStatus() == ApplicationStatus.PROCESSING) {
return;
}
Map<Long, String> userIdTokenMap = queryUserPort.getAllByIds(
event.getApplications().stream().map(Application::getStudentId).toList()
).stream()
Expand Down

0 comments on commit 14a7c92

Please sign in to comment.