diff --git a/functions/src/notifications/membershipStatusNotifications.ts b/functions/src/notifications/membershipStatusNotifications.ts index 4a99688..218ff95 100644 --- a/functions/src/notifications/membershipStatusNotifications.ts +++ b/functions/src/notifications/membershipStatusNotifications.ts @@ -545,6 +545,7 @@ async function sendTrainerNotifications( try { const trainerName = await getTrainerName(assignment.trainerId); const trainerUserId = await getTrainerUserId(assignment.trainerId); + const kTrainerRole = 'Trainer'; const notifType = notificationType === "expired" @@ -588,7 +589,7 @@ async function sendTrainerNotifications( gymName, assignmentId: assignment.id, formattedExpiryDate: formattedDate, - role: 'Trainer', + role: kTrainerRole, expiryDate: expiryDate ? admin.firestore.Timestamp.fromDate(expiryDate) : admin.firestore.Timestamp.fromDate(new Date()),