Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/push notification re #165

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/com/uspray/uspray/service/PrayFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ private void sendNotificationAndSaveLog(Pray pray, Member member) {
try {
fcmNotificationService.sendMessageTo(
member.getFirebaseToken(),
"누군가가 당신이 공유한 기도제목을 기도했어요.",
"💘");
"💘",
"누군가가 당신의 기도제목을 두고 기도했어요");
} catch (Exception e) {
log.error(e.getMessage());

Expand All @@ -168,7 +168,7 @@ private void sendNotificationAndSaveLog(Pray pray, Member member) {
NotificationLog notificationLog = NotificationLog.builder()
.pray(pray)
.member(memberRepository.getMemberByUserId(member.getUserId()))
.title("누군가가 당신이 공유한 기도제목을 기도했어요.")
.title("누군가가 당신의 기도제목을 두고 기도했어요")
.build();
notificationLogRepository.save(notificationLog);
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/uspray/uspray/service/ShareFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public void sendNotificationAndSaveLog(Pray pray, Member member) {
try {
fcmNotificationService.sendMessageTo(
member.getFirebaseToken(),
"누군가가 당신의 기도제목을 저장했어요.",
"💌");
"💌",
"누군가가 당신의 기도제목을 저장했어요");
} catch (Exception e) {
log.error(e.getMessage());
}
Expand All @@ -156,7 +156,7 @@ public void sendNotificationAndSaveLog(Pray pray, Member member) {
NotificationLog notificationLog = NotificationLog.builder()
.pray(pray)
.member(memberRepository.getMemberByUserId(member.getUserId()))
.title("누군가가 당신의 기도제목을 저장했어요.")
.title("누군가가 당신의 기도제목을 저장했어요")
.build();
notificationLogRepository.save(notificationLog);
}
Expand Down
Loading