Skip to content

Commit

Permalink
๐Ÿ› Fix: ํ‘ธ์‹œ ์•Œ๋ฆผ ๋™์˜/๊ฑฐ๋ถ€ ์—ฌ๋ถ€์— ๋”ฐ๋ฅธ ์•Œ๋ฆผ ์ฒ˜๋ฆฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
HyoBN committed Aug 27, 2024
1 parent c07e65b commit 1761b03
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public void createNotification(User user, Long treehouseId, NotificationRequestD
Member sender = memberQueryAdapter.findByUserAndTreehouse(user, treeHouse);
Member receiver = memberQueryAdapter.findById(request.getReceiverId());
Notification notification = NotificationMapper.toNotification(sender, receiver, request, reactionName);

fcmService.sendFcmMessage(receiver.getUser(), notification.getTitle(), notification.getBody());
if(user.isPushAgree()) {
fcmService.sendFcmMessage(receiver.getUser(), notification.getTitle(), notification.getBody());
}
notificationCommandAdapter.createNotification(notification);
}

Expand Down

0 comments on commit 1761b03

Please sign in to comment.