From e762d0fb7983c39ce5d5829b06294ba4dd24defd Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Tue, 26 Aug 2025 06:27:20 +0000 Subject: [PATCH] notification-bug-fix (#112) Co-authored-by: Dhansh A S Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/112 Reviewed-by: Allen T J Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- functions/src/notifications/processNotification.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/functions/src/notifications/processNotification.ts b/functions/src/notifications/processNotification.ts index fe7ce6a..6398419 100644 --- a/functions/src/notifications/processNotification.ts +++ b/functions/src/notifications/processNotification.ts @@ -82,15 +82,6 @@ async function getUserAndFCMToken( if (notification.recipientId) { targetUserId = notification.recipientId; logger.info(`Using top-level recipientId: ${targetUserId}`); - } else if (notification.data?.userId) { - targetUserId = notification.data.userId; - logger.info(`Using data.userId: ${targetUserId}`); - } else if (notification.data?.clientId) { - targetUserId = notification.data.clientId; - logger.info(`Using data.clientId: ${targetUserId}`); - } else if (notification.data?.invitorId) { - targetUserId = notification.data.invitorId; - logger.info(`Using data.invitorId: ${targetUserId}`); } else if (notification.data?.phoneNumber) { logger.info( `Looking up user by phone number from data: ${notification.data.phoneNumber}`