notification-bug-fix #105
| @ -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()), | ||||
|  | ||||
| @ -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 || | ||||
|         `${ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user