From ad31bc8e8038a4a44f8afecc55c6e1fb7edf8401 Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Thu, 11 Sep 2025 08:47:46 +0000 Subject: [PATCH] notification-bug-fix (#114) Co-authored-by: Dhansh A S Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/114 Reviewed-by: Dhansh A S Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- functions/src/notifications/membershipStatusNotifications.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/src/notifications/membershipStatusNotifications.ts b/functions/src/notifications/membershipStatusNotifications.ts index 40b5666..cc4f5ae 100644 --- a/functions/src/notifications/membershipStatusNotifications.ts +++ b/functions/src/notifications/membershipStatusNotifications.ts @@ -46,10 +46,11 @@ interface PersonalTrainerAssign { export const checkExpiredMemberships = onSchedule( { - schedule: "0 0,12 * * *", + schedule: "0 8,14,20 * * *", timeZone: "UTC", region: "#{SERVICES_RGN}#", }, + async (event) => { logger.info("Starting scheduled membership expiry check...");