Skip to content

Commit

Permalink
Feat: 단일 fcm 전송을 동기로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Nov 21, 2023
1 parent bac76e2 commit 28bbd90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void sendFcm(Member member, NotificationMessage notificationMessage, Noti
.build();
try {
//String response = FirebaseMessaging.getInstance().send(message);
FirebaseMessaging.getInstance().sendAsync(message);
FirebaseMessaging.getInstance().send(message);
notificationRepository.save(new NotificationEntity(member, tag, title, body, true));
log.info("Fcm 푸시 알람을 성공적으로 전송하였습니다.");
log.info("[FCM Message] {} : {}", title, body);
Expand Down Expand Up @@ -78,7 +78,7 @@ public void sendFcm(Member member, String title, String body, NotificationTag ta
.build();
try {
//String response = FirebaseMessaging.getInstance().send(message);
FirebaseMessaging.getInstance().sendAsync(message);
FirebaseMessaging.getInstance().send(message);
notificationRepository.save(new NotificationEntity(member, tag, title, body, true));
log.info("Fcm 푸시 알람을 성공적으로 전송하였습니다.");
log.info("[FCM Message] {} : {}", title, body);
Expand Down

0 comments on commit 28bbd90

Please sign in to comment.