Skip to content

Commit

Permalink
hotfix: FcmNotificationType value name 조건 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb committed Oct 14, 2024
1 parent bb8f746 commit f8951d4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,16 @@ private void sendNotification(
String title = notificationType.getTitle();
String message = commentWriter.getProfile().getNickname() + notificationType.getMessage();
List<String> tokens = retrieveFcmTokens(Set.of(recipient));
String notificationTypeName = notificationType.name();
if (notificationType.name().equals(FcmNotificationConstants.RECORD_RE_COMMENT.name())) {
notificationTypeName = FcmNotificationConstants.RE_COMMENT.name();
}
fcmNotificationService.sendAndNotifications(
title,
message,
tokens,
missionRecord.getId(),
FcmNotificationType.valueOf(notificationType.name()));
FcmNotificationType.valueOf(notificationTypeName));
}

private Set<Member> collectNotificationRecipients(
Expand Down

0 comments on commit f8951d4

Please sign in to comment.