From 1c77fc9d2bae5ab5794de05fd066938bdd9ea66a Mon Sep 17 00:00:00 2001 From: BGuga Date: Tue, 26 Sep 2023 15:18:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20eventListen=20=EB=A1=9C=EC=A7=81?= =?UTF-8?q?=EC=9D=84=20=EB=B9=84=EB=8F=99=EA=B8=B0=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=B2=98=EB=A6=AC=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/festago/fcm/application/AuthEventListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);