Add customer vehicle id to insurance FCM notifications #761
This commit is contained in:
parent
da87b386a3
commit
502e9a11cd
1 changed files with 6 additions and 2 deletions
|
|
@ -80,7 +80,9 @@ class InsuranceController extends Controller
|
|||
$this->em->flush();
|
||||
|
||||
// send notification
|
||||
$this->fcmclient->sendEvent($obj->getCustomer(), "insurance_fcm_title_completed", "insurance_fcm_body_completed");
|
||||
$this->fcmclient->sendEvent($obj->getCustomer(), "insurance_fcm_title_completed", "insurance_fcm_body_completed", [
|
||||
'cv_id' => $obj->getCustomerVehicle()->getID(),
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->json([
|
||||
|
|
@ -108,7 +110,9 @@ class InsuranceController extends Controller
|
|||
$this->em->flush();
|
||||
|
||||
// send notification
|
||||
$this->fcmclient->sendEvent($obj->getCustomer(), "insurance_fcm_title_updated", "insurance_fcm_body_updated");
|
||||
$this->fcmclient->sendEvent($obj->getCustomer(), "insurance_fcm_title_updated", "insurance_fcm_body_updated", [
|
||||
'cv_id' => $obj->getCustomerVehicle()->getID(),
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->json([
|
||||
|
|
|
|||
Loading…
Reference in a new issue