FIX_ISSUE_EMPLOYEE_SUCCESS_UPDATE

This commit is contained in:
VENKATESHWARAN 2026-04-08 17:35:50 +05:30
parent 76d3f529b0
commit 3149cc29d2

View File

@ -1457,17 +1457,17 @@ class EmployeeServiceController extends AdminController
// } // }
} }
// if ($employee_insert_count > 0) { if ($employee_insert_count > 0) {
// $this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update(); $this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update();
// $this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]); $this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]);
// } else { } else {
// $reason = json_encode([ $reason = json_encode([
// 'error_summary' => [5 => 1], 'error_summary' => [5 => 1],
// 'error_data' => "Rack rate configuration issue: Please check the slab rates configuration" 'error_data' => "Rack rate configuration issue: Please check the slab rates configuration"
// ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
// $this->fileModel->where('id', $file_id)->set(['status' => 'failed', 'reason' => $reason])->update(); $this->fileModel->where('id', $file_id)->set(['status' => 'failed', 'reason' => $reason])->update();
// $this->myLogger->logme("error", '{file_id} uploaded failed with reason: Rack rate configuration issue: Please check the slab rates configuration', ['file_id' => $file_id]); $this->myLogger->logme("error", '{file_id} uploaded failed with reason: Rack rate configuration issue: Please check the slab rates configuration', ['file_id' => $file_id]);
// } }
// $this->setPullNotification($this->getFileMetaDataByFileId($file_id, 'success')); // $this->setPullNotification($this->getFileMetaDataByFileId($file_id, 'success'));
} else if (isset($params['client_policy_id'])) //handle data from enrollment to inception } else if (isset($params['client_policy_id'])) //handle data from enrollment to inception