Skip to content

Commit

Permalink
refactor: eventListen 로직을 비동기적으로 처리한다
Browse files Browse the repository at this point in the history
  • Loading branch information
BGuga committed Sep 26, 2023
1 parent 29c5c55 commit 1c77fc9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c77fc9

Please sign in to comment.