notification-bug-fix #111

Merged
allentj merged 74 commits from notification-bug-fix into dev 2025-08-25 09:57:03 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit e1822f9257 - Show all commits

View File

@ -588,6 +588,7 @@ async function sendTrainerNotifications(
gymName, gymName,
assignmentId: assignment.id, assignmentId: assignment.id,
formattedExpiryDate: formattedDate, formattedExpiryDate: formattedDate,
role: 'Trainer',
expiryDate: expiryDate expiryDate: expiryDate
? admin.firestore.Timestamp.fromDate(expiryDate) ? admin.firestore.Timestamp.fromDate(expiryDate)
: admin.firestore.Timestamp.fromDate(new Date()), : admin.firestore.Timestamp.fromDate(new Date()),

View File

@ -181,8 +181,8 @@ function prepareNotificationMessage(
title = title =
notification.data?.title || notification.data?.title ||
(notification.data?.status === "accepted" (notification.data?.status === "accepted"
? "Trainer Request Accepted" ? "Trainer Invitation Accepted"
: "Trainer Request Update"); : "Trainer Invitation Update");
body = body =
notification.data?.message || notification.data?.message ||
`${ `${