Change mqtt event when rider cancels to outlet_assign #162
This commit is contained in:
parent
f720ccd940
commit
4b635631ba
1 changed files with 2 additions and 2 deletions
|
|
@ -509,9 +509,9 @@ class RAPIController extends Controller
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
// send mqtt event
|
// send mqtt event
|
||||||
|
// send outlet assign since order should go back to hub and await reassignment to another rider
|
||||||
$payload = [
|
$payload = [
|
||||||
'event' => 'cancelled',
|
'event' => 'outlet_assign',
|
||||||
'reason' => 'mobile cancellation',
|
|
||||||
'jo_id' => $jo->getID(),
|
'jo_id' => $jo->getID(),
|
||||||
];
|
];
|
||||||
$mclient->sendEvent($jo, $payload);
|
$mclient->sendEvent($jo, $payload);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue