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