From d3710f034f56998918e87498000582a6e29a67df Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 6 Dec 2023 11:03:47 +0530 Subject: [PATCH] Issues Fixes : ps --- app/Controllers/Customer.php | 2 +- app/Controllers/Notifications.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Customer.php b/app/Controllers/Customer.php index 6d50b29e..e9545830 100644 --- a/app/Controllers/Customer.php +++ b/app/Controllers/Customer.php @@ -357,7 +357,7 @@ class Customer extends BaseController $result = $model->where($where)->findAll(); $db = \Config\Database::connect(); $sql = (string)$result[0]['group_query']; - print_r($sql);die; + //print_r($sql);die; if($sql){ $query = $db->query($sql); $results = $query->getResultArray(); diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index 954a30d9..a3a4d214 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -129,8 +129,8 @@ class Notifications extends BaseController $params->number = (int)'91' . $recipient_mobile; $params->type = "text"; $params->message = $template; - $params->instance_id = WAAI_INSTANCE; - $params->access_token = WAAI_TOKEN; + $params->instance_id = $_ENV['WAAI_INSTANCE']; + $params->access_token = $_ENV['WAAI_TOKEN']; $this->logger->info("Notification : Duedate notification Email Request data = ".json_encode($records)); $email_result = $notification->sendEmail($records); @@ -359,7 +359,7 @@ class Notifications extends BaseController public function getExpCustomerDetail($window_time = null) { - // Step 1: add the days to retrive th e data// + // Step 1: add the days to retrive th e data// $providedDate = date('Y-m-d'); $newDate = date('Y-m-d', strtotime($providedDate . ' + ' . $window_time . ' days'));