From 1bb0024c59ad5b86ef885edc5268338b1d0f4a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Km=C3=ADnek?= Date: Sun, 29 Oct 2023 20:38:40 +0100 Subject: [PATCH] feat: Fix non-existing reportId --- .../push-notification/manager/PushNotificationManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/module/push-notification/manager/PushNotificationManager.php b/app/module/push-notification/manager/PushNotificationManager.php index 8ef4017b..fb66d0e0 100644 --- a/app/module/push-notification/manager/PushNotificationManager.php +++ b/app/module/push-notification/manager/PushNotificationManager.php @@ -282,7 +282,7 @@ private function processReport(MessageSentReport $report): void $subscriberId = $this->getIdByEndpoint(str_replace("/fcm/send/", "", $endpointUrl->getPath())); if ($subscriberId && !$report->isSuccess() && $report->isSubscriptionExpired()) { - $this->delete($subscriberId, $report->getId()); //sending to void subscription - delete it from DB to avoid ghosts + $this->delete($subscriberId); //sending to void subscription - delete it from DB to avoid ghosts } } }