From 45378559ca75f33f21bb8f90d56de77e190e0434 Mon Sep 17 00:00:00 2001 From: GuwandykA Date: Sat, 19 Sep 2026 11:51:23 +0500 Subject: [PATCH] todo check day --- internal/payment/visamasterpay/db/postgresql.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/payment/visamasterpay/db/postgresql.go b/internal/payment/visamasterpay/db/postgresql.go index 63b9836..6130810 100644 --- a/internal/payment/visamasterpay/db/postgresql.go +++ b/internal/payment/visamasterpay/db/postgresql.go @@ -425,7 +425,14 @@ var ashgabatZone = time.FixedZone("+05", 5*60*60) // are always adjacent, this alone also produces the right month-end cutoff // (e.g. if the 31st is a Sunday, the 30th is a Saturday, so the 29th - // Friday - is the last payable day) without any separate month-end logic. +// TODO: re-enable before deploying to prod - temporarily left open to allow +// testing the pay flow on weekends. +const skipPayableDayCheck = true + func isPayableDay(t time.Time) bool { + if skipPayableDayCheck { + return true + } wd := t.In(ashgabatZone).Weekday() return wd != time.Saturday && wd != time.Sunday }