From cefc6c036533f53100be45654f80e148e1c17a05 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 23 Aug 2023 08:58:18 +0700 Subject: [PATCH] tuning cron using expiration date --- system/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/cron.php b/system/cron.php index dc2bf026..2106ef9a 100644 --- a/system/cron.php +++ b/system/cron.php @@ -66,7 +66,7 @@ date_default_timezone_set($config['timezone']); $textExpired = $_notifmsg['expired']; -$d = ORM::for_table('tbl_user_recharges')->where('status', 'on')->find_many(); +$d = ORM::for_table('tbl_user_recharges')->where('status', 'on')->where('expiration', date("Y-m-d"))->find_many(); run_hook('cronjob'); #HOOK