Resolve "Add MQTT event for driver_assigned" #853
1 changed files with 6 additions and 0 deletions
|
|
@ -861,6 +861,12 @@ class JobOrderController extends BaseController
|
|||
// validated! save the entity
|
||||
$em->flush();
|
||||
|
||||
// send event to mobile app
|
||||
$payload = [
|
||||
'event' => 'driver_assigned'
|
||||
];
|
||||
$this->sendEvent($obj, $payload);
|
||||
|
||||
// return successful response
|
||||
return $this->json([
|
||||
'success' => 'Changes have been saved!'
|
||||
|
|
|
|||
Loading…
Reference in a new issue