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();
|
||||
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue