From e1822f925797cb179d38df1d92e64defd79c637c Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Thu, 14 Aug 2025 12:47:03 +0530 Subject: [PATCH] Added role to navigate to notification screen --- functions/src/notifications/membershipStatusNotifications.ts | 1 + functions/src/notifications/processNotification.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/src/notifications/membershipStatusNotifications.ts b/functions/src/notifications/membershipStatusNotifications.ts index 8d25206..4a99688 100644 --- a/functions/src/notifications/membershipStatusNotifications.ts +++ b/functions/src/notifications/membershipStatusNotifications.ts @@ -588,6 +588,7 @@ async function sendTrainerNotifications( gymName, assignmentId: assignment.id, formattedExpiryDate: formattedDate, + role: 'Trainer', expiryDate: expiryDate ? admin.firestore.Timestamp.fromDate(expiryDate) : admin.firestore.Timestamp.fromDate(new Date()), diff --git a/functions/src/notifications/processNotification.ts b/functions/src/notifications/processNotification.ts index d8edce7..fe7ce6a 100644 --- a/functions/src/notifications/processNotification.ts +++ b/functions/src/notifications/processNotification.ts @@ -181,8 +181,8 @@ function prepareNotificationMessage( title = notification.data?.title || (notification.data?.status === "accepted" - ? "Trainer Request Accepted" - : "Trainer Request Update"); + ? "Trainer Invitation Accepted" + : "Trainer Invitation Update"); body = notification.data?.message || `${