fix(fcm): 시스템 카테고리 알림 저장 제외 정책을 서비스에 반영한다

This commit is contained in:
2026-03-13 22:57:37 +09:00
parent 205cfe0899
commit 7251939107
3 changed files with 59 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ class ChargeEventService(
applicationEventPublisher.publishEvent(
FcmEvent(
type = FcmEventType.INDIVIDUAL,
category = PushNotificationCategory.MESSAGE,
category = PushNotificationCategory.SYSTEM,
title = chargeEvent.title,
messageKey = "can.charge.event.additional_can_paid",
args = listOf(additionalCan),
@@ -103,7 +103,7 @@ class ChargeEventService(
applicationEventPublisher.publishEvent(
FcmEvent(
type = FcmEventType.INDIVIDUAL,
category = PushNotificationCategory.MESSAGE,
category = PushNotificationCategory.SYSTEM,
titleKey = "can.charge.event.first_title",
messageKey = "can.charge.event.additional_can_paid",
args = listOf(additionalCan),

View File

@@ -48,6 +48,7 @@ class PushNotificationService(
if (recipientMemberIds.isEmpty()) return
val category = resolveCategory(fcmEvent) ?: return
if (category == PushNotificationCategory.SYSTEM) return
val senderSnapshot = resolveSenderSnapshot(fcmEvent)
val deepLink = FcmService.buildDeepLink(
serverEnv = serverEnv,