Automation Data push Credit pd : ps

This commit is contained in:
VE10-Sanjeev 2023-04-26 20:32:45 +05:30
parent 32f94c3505
commit 2e2e3a7b18

View File

@ -2038,10 +2038,22 @@ public function filterSalesPDList_post() {
}else {
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');
}
### Automation CET Data Push Credit-PD
sleep(10);
$result = $this->dataSynchronization($smc_credit_pd,0);
log_message('ERROR', '#### Automation CET Data Push Credit-PD ('.$smc_credit_pd.') status '.$result->status.' Data Transfered');
if(isset($result->status) && $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);
}
$data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK;
$data['records'] = $singed_uri;
$data['gcpURL'] = $report_gcp_url;
$data['CETresponse'] = $result;
$this->response($data,REST_Controller::HTTP_OK);
}