Skip to content

Commit

Permalink
feat: Fix non-existing reportId
Browse files Browse the repository at this point in the history
  • Loading branch information
KminekMatej committed Oct 29, 2023
1 parent 13da4e1 commit 1bb0024
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit 1bb0024

Please sign in to comment.