reverted : ps

This commit is contained in:
VE10-Sanjeev 2023-02-04 16:56:10 +05:30
parent c9970c3a08
commit 86097a4b46

View File

@ -43,8 +43,8 @@ class Request_DataDump_Controller extends REST_Controller {
// echo $memory_limit;die(); // echo $memory_limit;die();
$records = $this->post(); $records = $this->post();
if(!empty($records)){ if(!empty($records)){
// $id = $this->Data_Dump_Model->saveRecords($records, DATADUMPREQUEST); $id = $this->Data_Dump_Model->saveRecords($records, DATADUMPREQUEST);
$id = 17; // $id = 17;
log_message('ERROR','## 1) saveDatadumpRequest Fns RequestID - '.$id); log_message('ERROR','## 1) saveDatadumpRequest Fns RequestID - '.$id);
if ($id) { if ($id) {
$data['dataStatus'] = true; $data['dataStatus'] = true;
@ -1950,8 +1950,8 @@ class Request_DataDump_Controller extends REST_Controller {
// Save .xlsx file to the current directory // Save .xlsx file to the current directory
$filename = "DRID".$id."_".date('Ymd_hmi').".xlsx"; $filename = "DRID".$id."_".date('Ymd_hmi').".xlsx";
$writer->save(XLPATH.'/dump/'.$filename); $writer->save(XLPATH.'/dump/'.$filename);
// $result = $this->uploadXltoAWS($id,$filename); $result = $this->uploadXltoAWS($id,$filename);
$result = true; // $result = true;
return $result; return $result;
} }
else else