Change mqtt event when rider cancels to outlet_assign #162

This commit is contained in:
Kendrick Chan 2018-08-15 11:24:26 +08:00
parent f720ccd940
commit 4b635631ba

View file

@ -509,9 +509,9 @@ class RAPIController extends Controller
$em->flush();
// send mqtt event
// send outlet assign since order should go back to hub and await reassignment to another rider
$payload = [
'event' => 'cancelled',
'reason' => 'mobile cancellation',
'event' => 'outlet_assign',
'jo_id' => $jo->getID(),
];
$mclient->sendEvent($jo, $payload);