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)
{
$data = [
//'title' => 'Failed Get Ongoing Job Order',
//'error' => 'No active job order.',
'job_order' => [],
// 'title' => 'Failed Get Ongoing Job Order',
// 'error' => 'No active job order.',
'job_order' => null,
];
return $data;
}