From 4a2538ddf81aa1f62ab89e4252e19308f96071b5 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 11 Dec 2023 09:57:17 +0000 Subject: [PATCH 1/2] Minor Changes --- app/Controllers/Notifications.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index 59442d31..a09a7921 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -383,7 +383,7 @@ class Notifications extends BaseController $ExpCustomerDetail = $NotificationModel->getExpDate(); // Retrieve the stored query if (empty($ExpCustomerDetail)) { - $this->logger->info('There is no query'); + $this->logger->info('No customer group found by the name of EXPIRYDATE'); return; } //Step 3: Replace the placeholder WINDOW_TIME with the user-provided value @@ -399,14 +399,14 @@ class Notifications extends BaseController $notification = new NotificationHelper(); if (empty($queryResult)) { - $this->logger->info("There is no data against customer on given date:{$newDate}"); + $this->logger->info("There is no customer expiring on date:{$newDate}"); return; } foreach ($queryResult as $row) { $templateName = $NotificationModel->getTempName(); if (empty($templateName)) { - $this->logger->info('There is no template found'); + $this->logger->info('There is no template found by the name of EXPIRAY_NOTIFY_TEMPLATE'); return; } $userFirstName = $row['first_name']; From df5dc78b048144bfaf37483e5c8bebd3446fe813 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 11 Dec 2023 10:08:31 +0000 Subject: [PATCH 2/2] MINOR CHNAGE --- app/Models/NotificationModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/NotificationModel.php b/app/Models/NotificationModel.php index 564863d0..a425a699 100644 --- a/app/Models/NotificationModel.php +++ b/app/Models/NotificationModel.php @@ -150,7 +150,7 @@ public function customerGroupQueryExecution($queries){ { $db = \Config\Database::connect(); - $query = "SELECT * FROM customer_groups WHERE group_name = 'EXPIRYDAT'"; + $query = "SELECT * FROM customer_groups WHERE group_name = 'EXPIRYDATE'"; $result = $db->query($query)->getResultArray();