Add notification sending for JOs cancelled by rider #472

This commit is contained in:
Kendrick Chan 2020-08-23 01:33:26 +08:00
parent c2e10a12e6
commit 198406a5ec

View file

@ -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;
}