Pass jo status with each notification #730

This commit is contained in:
Ramon Gutierrez 2023-06-14 17:36:31 +08:00
parent c2418b117e
commit b81b10840b

View file

@ -82,8 +82,9 @@ class FCMSender
return;
}
// attach jo id
// attach jo info
$data['jo_id'] = $job_order->getID();
$data['jo_status'] = $job_order->getStatus();
// send fcm notification
$result = $this->send($device_ids, $this->translator->trans($title), $this->translator->trans($body), $data);