From 9e09611816377e9ad8e44a518412d8de83fbb0e1 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 24 Oct 2023 15:12:10 +0700 Subject: [PATCH] Fix expired notification --- system/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/cron.php b/system/cron.php index cf897be0..bddfd923 100644 --- a/system/cron.php +++ b/system/cron.php @@ -129,8 +129,8 @@ foreach ($d as $ds) { Mikrotik::removeHotspotUser($client, $c['username']); } Mikrotik::removeHotspotActiveUser($client, $c['username']); - Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); } + Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); //update database user dengan status off $u->status = 'off'; $u->save(); @@ -183,8 +183,8 @@ foreach ($d as $ds) { Mikrotik::removePpoeUser($client, $c['username']); } Mikrotik::removePpoeActive($client, $c['username']); - Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); } + Message::sendPackageNotification($c['phonenumber'], $c['fullname'], $u['namebp'], $textExpired, $config['user_notification_expired']); $u->status = 'off'; $u->save();