Add notification sending for JOs cancelled by rider #472
This commit is contained in:
parent
c2e10a12e6
commit
198406a5ec
1 changed files with 4 additions and 0 deletions
|
|
@ -1076,6 +1076,10 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
|
||||
$this->em->flush();
|
||||
|
||||
// notification
|
||||
$notif_url = $this->router->generate('jo_onestep_edit_form', ['id' => $jo->getID()]);
|
||||
$this->nm->sendNotification(0, 'Job order has been cancelled by rider.', $notif_url);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue