fix(abdm): use correct column names last_action_result and completed_at in abdm_work_tasks
This commit is contained in:
parent
a3537c0b29
commit
6ac211377b
|
|
@ -1831,9 +1831,10 @@ class AbdmTaskBoard extends BaseController
|
||||||
|
|
||||||
if ($isPushed && $taskId > 0) {
|
if ($isPushed && $taskId > 0) {
|
||||||
$this->db->table('abdm_work_tasks')->where('id', $taskId)->update([
|
$this->db->table('abdm_work_tasks')->where('id', $taskId)->update([
|
||||||
'status' => 'completed',
|
'status' => 'completed',
|
||||||
'result_summary' => 'Pushed to ABDM Bridge (ID #' . ($wRow['bridge_record_id'] ?? '') . ')',
|
'last_action_result' => 'Pushed to ABDM Bridge (ID #' . ($wRow['bridge_record_id'] ?? '') . ')',
|
||||||
'updated_at' => date('Y-m-d H:i:s'),
|
'completed_at' => date('Y-m-d H:i:s'),
|
||||||
|
'updated_at' => date('Y-m-d H:i:s'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1185,7 +1185,8 @@ class NursingApi extends BaseController
|
||||||
if ($pushStatus === 'queued' && $tId > 0) {
|
if ($pushStatus === 'queued' && $tId > 0) {
|
||||||
$db->table('abdm_work_tasks')->where('id', $tId)->update([
|
$db->table('abdm_work_tasks')->where('id', $tId)->update([
|
||||||
'status' => 'completed',
|
'status' => 'completed',
|
||||||
'result_summary' => 'Pushed to ABDM Bridge (ID #' . $bridgeRecordId . ', Queue: ' . $queueId . ')',
|
'last_action_result' => 'Pushed to ABDM Bridge (ID #' . $bridgeRecordId . ', Queue: ' . $queueId . ')',
|
||||||
|
'completed_at' => date('Y-m-d H:i:s'),
|
||||||
'updated_at' => date('Y-m-d H:i:s'),
|
'updated_at' => date('Y-m-d H:i:s'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user