From 2fa496e905f8b692cb138ff58fa147cf8f2ffb64 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 2 Feb 2023 15:56:30 +0530 Subject: [PATCH] CET Credit PD COMMENT : PS --- .../controllers/SMC_Credit_PD_Controller.php | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index 785dd277..b07c94a3 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -230,15 +230,17 @@ class SMC_Credit_PD_Controller extends REST_Controller { { $this->SMC_Credit_PD_Model->updateRecords(array('is_pdf' => 1, 'is_edited' => 0),SMC_CREDIT_PD,array('smc_credit_pd' => $smc_credit_pd)); - sleep(10); - $result = $this->dataSynchronization($smc_credit_pd); - log_message('ERROR', '#### Automation Credit PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered'); - // $flag = $result == true ? $flag+1 : $flag; - if($result->status == 200){ - log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status." Data Transfered"); - $update_fields2 = array('is_the_data_transfer_cet' => 1); - $this->SMC_Credit_PD_Model->updateRecords($update_fields2,PDTRIGGER,array('pd_id' => $smc_credit_pd)); - } + // ### Automation CET Data Push Credit PD - 2/2/23 + // sleep(10); + // $result = $this->dataSynchronization($smc_credit_pd); + // log_message('ERROR', '#### Automation CET Data Push Credit PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered'); + // if($result->status == 200){ + // log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status." Data Transfered"); + // $update_fields2 = array('is_the_data_transfer_cet' => 1); + // $this->SMC_Credit_PD_Model->updateRecords($update_fields2,PDTRIGGER,array('pd_id' => $smc_credit_pd)); + // }else{ + // log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') status '.$result->status); + // } if($api) { // $singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');