From cba945c282124864058b59ae9d1b3f4e18d62329 Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Tue, 5 Aug 2025 09:22:10 +0000 Subject: [PATCH] expiry-using-payment (#80) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/80 Reviewed-by: Dhansh A S Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- functions/src/notifications/membershipStatusNotifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/notifications/membershipStatusNotifications.ts b/functions/src/notifications/membershipStatusNotifications.ts index ef0c238..bc908e2 100644 --- a/functions/src/notifications/membershipStatusNotifications.ts +++ b/functions/src/notifications/membershipStatusNotifications.ts @@ -35,7 +35,7 @@ interface PaymentData { export const checkExpiredMemberships = onSchedule( { - schedule: "0 8,14,20 * * *", + schedule: "*/5 * * * *", timeZone: "UTC", region: "#{SERVICES_RGN}#", }, @@ -171,7 +171,7 @@ async function getPaymentsForMembership( try { const docSnapshot = await app .firestore() - .collection("membershipPayments") + .collection("membership_payments") .doc(membershipId) .get();