FIX_ISSUE_EMPLOYEE_SUCCESS_UPDATE
This commit is contained in:
parent
76d3f529b0
commit
3149cc29d2
@ -1457,17 +1457,17 @@ class EmployeeServiceController extends AdminController
|
||||
// }
|
||||
}
|
||||
|
||||
// if ($employee_insert_count > 0) {
|
||||
// $this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update();
|
||||
// $this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]);
|
||||
// } else {
|
||||
// $reason = json_encode([
|
||||
// 'error_summary' => [5 => 1],
|
||||
// 'error_data' => "Rack rate configuration issue: Please check the slab rates configuration"
|
||||
// ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
// $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]);
|
||||
// }
|
||||
if ($employee_insert_count > 0) {
|
||||
$this->fileModel->where('id', $file_id)->set(['status' => 'success', 'reason' => ''])->update();
|
||||
$this->myLogger->logme("error", '{file_id} uploaded success', ['file_id' => $file_id]);
|
||||
} else {
|
||||
$reason = json_encode([
|
||||
'error_summary' => [5 => 1],
|
||||
'error_data' => "Rack rate configuration issue: Please check the slab rates configuration"
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
$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->setPullNotification($this->getFileMetaDataByFileId($file_id, 'success'));
|
||||
} else if (isset($params['client_policy_id'])) //handle data from enrollment to inception
|
||||
|
||||
Loading…
Reference in New Issue
Block a user