diff --git a/backend/src/main/java/com/festago/fcm/application/AuthEventListener.java b/backend/src/main/java/com/festago/fcm/application/AuthEventListener.java index 87d4e42f9..dbf4c42e2 100644 --- a/backend/src/main/java/com/festago/fcm/application/AuthEventListener.java +++ b/backend/src/main/java/com/festago/fcm/application/AuthEventListener.java @@ -22,7 +22,9 @@ public AuthEventListener(MemberFCMRepository memberFCMRepository) { this.memberFCMRepository = memberFCMRepository; } - @TransactionalEventListener + @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT) + @Transactional + @Async public void saveMemberFCM(MemberLoginEvent memberLoginEvent) { Long memberId = memberLoginEvent.memberId(); deleteFCM(memberId);