Add driver_assigned event #45

This commit is contained in:
Kendrick Chan 2018-03-08 11:56:25 +08:00
parent 6ea59d4882
commit b37dbd5986

View file

@ -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!'