Skip to content

Commit 61ab8af

Browse files
committed
๐Ÿ› Bug: ํ‘ธ์‹œ์•Œ๋ฆผ senderName ์ถœ๋ ฅ๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ
1 parent 7a918e5 commit 61ab8af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

โ€Žsrc/main/java/treehouse/server/api/notification/business/NotificationService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ public void createNotification(User user, Long treehouseId, NotificationRequestD
4949
User receiver = userQueryAdapter.findByIdOptional(request.getReceiverId()).orElse(null);
5050
Notification notification = NotificationMapper.toNotification(sender, receiver, request, reactionName);
5151

52+
StringBuilder sb = new StringBuilder();
53+
sb.append(sender.getName()).append(notification.getBody());
54+
String fcmMsgBody = sb.toString();
55+
5256
if(receiver.isPushAgree()) {
53-
fcmService.sendFcmMessage(receiver, notification.getTitle(), notification.getBody());
57+
fcmService.sendFcmMessage(receiver, notification.getTitle(), fcmMsgBody);
5458

5559
}
5660
notificationCommandAdapter.createNotification(notification);

0 commit comments

Comments
ย (0)