Added role to navigate to notification screen
This commit is contained in:
parent
5527e882b3
commit
e1822f9257
@ -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()),
|
||||||
|
|||||||
@ -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 ||
|
||||||
`${
|
`${
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user