From b81b10840b7c162a56cdbd633d0f9118715343f0 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Wed, 14 Jun 2023 17:36:31 +0800 Subject: [PATCH] Pass jo status with each notification #730 --- src/Service/FCMSender.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/FCMSender.php b/src/Service/FCMSender.php index 9cd15356..8130fe1a 100644 --- a/src/Service/FCMSender.php +++ b/src/Service/FCMSender.php @@ -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);