diff --git a/src/Controller/InsuranceController.php b/src/Controller/InsuranceController.php index 329cc59b..91b1b855 100644 --- a/src/Controller/InsuranceController.php +++ b/src/Controller/InsuranceController.php @@ -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([