Set job_order field to null if no ongoing in RAPI call #488

This commit is contained in:
Kendrick Chan 2020-09-16 20:18:07 +08:00
parent 97d8b9e147
commit 2c4167a093

View file

@ -2104,9 +2104,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
if ($jo == null) if ($jo == null)
{ {
$data = [ $data = [
//'title' => 'Failed Get Ongoing Job Order', // 'title' => 'Failed Get Ongoing Job Order',
//'error' => 'No active job order.', // 'error' => 'No active job order.',
'job_order' => [], 'job_order' => null,
]; ];
return $data; return $data;
} }