Skip to content

Commit 9855c15

Browse files
Merge pull request #98 from Donut-DONationUTile/feature/fcm
chore: message custom
2 parents bef70dd + 7149ec5 commit 9855c15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/zero/eight/donut/service/FcmService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,19 @@ public List<String> immminentGift() throws FirebaseMessagingException {
8585

8686
public String mock37(String email, String product) throws FirebaseMessagingException {
8787
Giver giver = giverRepository.findByEmail(email).orElseThrow();
88-
fcmUtils.sendMessage(giver.getId(), "wallet: D-37", "Your item" + product + "is expiring soon! It will be automatically donated.");
88+
fcmUtils.sendMessage(giver.getId(), "[DONUT] D-37", "Your item" + product + "is expiring soon! It will be automatically donated.");
8989
return "fcmReceiver: " + email + "(ROLE_GIVER), fcm title: wallet: D-37, fcm body: Your item" + product + "is expiring soon! It will be automatically donated.";
9090
}
9191

9292
public String mock30(String email, String product) throws FirebaseMessagingException {
9393
Giver giver = giverRepository.findByEmail(email).orElseThrow();
94-
fcmUtils.sendMessage(giver.getId(), "wallet: D-30", "Your item" + product + "is donated now!");
94+
fcmUtils.sendMessage(giver.getId(), "[DONUT] D-30", "Your item" + product + "is donated now!");
9595
return "fcmReceiver: " + giver.getName() + "(ROLE_GIVER), fcm title: wallet: D-30, fcm body: Your item" + product + "is donated now!";
9696
}
9797

9898
public String mock7(String name, String store) throws FirebaseMessagingException {
9999
Receiver receiver = receiverRepository.findByName(name).orElseThrow();
100-
fcmUtils.sendMessage(receiver.getId(), "giftbox: D-7", "Your gift box is expiring soon! You can use it at" + store + ".");
100+
fcmUtils.sendMessage(receiver.getId(), "[DONUT] D-7", "Your gift box is expiring soon! You can use it at" + store + ".");
101101
return "fcmReceiver: " + receiver.getName() + "(ROLE_RECEIVER), fcm title: giftbox: D-7, fcm body: Your gift box is expiring soon! You can use it at" + store + ".";
102102
}
103103
}

0 commit comments

Comments
 (0)