From 2c4167a0934103433b0c9a8785f36d0d5ec2569e Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Wed, 16 Sep 2020 20:18:07 +0800 Subject: [PATCH] Set job_order field to null if no ongoing in RAPI call #488 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index 608bdf10..773b17c0 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -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; }