Skip to content

Commit

Permalink
refactor: 알림 연결 링크 추가 #268
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbonai06 committed Nov 10, 2022
1 parent f5941cf commit 98f9fad
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ public void createPendingChallengeNotification(User contractUser, ChallengeUser
newMap.put("challenge", challengeUser.getChallenge().getId());
NotificationCategory notificationCategory = NotificationCategory.CHALLENGE;
Boolean checkServiceOptIn = checkServiceOptIn(contractUser, title, notificationBody,
notificationCategory, "");
notificationCategory, "/");
if (checkServiceOptIn) {
this.sendMessage(contractUser, title, notificationBody, newMap,
notificationCategory, "");
notificationCategory, "/");
}
log.info("부모 유저 id = {}에게 유저 id = {} 돈길 id = {} 의 돈길 제안", contractUser.getId(),
challengeUser.getUser().getId(), challengeUser.getChallenge().getId());
Expand Down Expand Up @@ -288,10 +288,10 @@ public void kidLevelUpNotification(User contractUser, User user, Long level, Lon
newMap.put("user", user.getId());
NotificationCategory notificationCategory = NotificationCategory.LEVEL;
Boolean checkServiceOptIn = checkServiceOptIn(contractUser, title, notificationBody,
notificationCategory, "");
notificationCategory, "/");
if (checkServiceOptIn) {
this.sendMessage(contractUser, title, notificationBody, newMap,
notificationCategory, "");
notificationCategory, "/");
}
log.info("부모 유저 id = {}에게 유저 id = {}의 레벨업 알림 전송", contractUser.getId(), user.getId());
}
Expand Down Expand Up @@ -391,10 +391,10 @@ public void newFamilyUserNotification(User newFamilyUser, List<FamilyUser> famil
familyUserList.forEach(familyUser -> {
User user = familyUser.getUser();
Boolean checkServiceOptIn = checkServiceOptIn(user, title, notificationBody,
notificationCategory, "");
notificationCategory, "/newFamily");
if (checkServiceOptIn) {
this.sendMessage(user, title, notificationBody, newMap,
notificationCategory, "");
notificationCategory, "/newFamily");
}
log.info("기존 가족 구성원 id = {}에게 유저 id = {}의 가족 참여 알림 전송", familyUser.getUser().getId(),
newFamilyUser.getId());
Expand Down

0 comments on commit 98f9fad

Please sign in to comment.