Issues Fixes : ps

This commit is contained in:
VE10-Sanjeev 2023-12-06 11:03:47 +05:30
parent ae00cb6e76
commit d3710f034f
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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'));