From e71e5a877b98695993892814a2436047c8b78af7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 9 Aug 2025 11:13:03 +0200 Subject: [PATCH] Fix count for overdue bills. --- app/Handlers/Events/BillEventHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Handlers/Events/BillEventHandler.php b/app/Handlers/Events/BillEventHandler.php index 48cabb95e8..6a96bf29a7 100644 --- a/app/Handlers/Events/BillEventHandler.php +++ b/app/Handlers/Events/BillEventHandler.php @@ -69,7 +69,7 @@ class BillEventHandler return; } - Log::debug(sprintf('Will warning about %d overdue subscription(s).', count($toBeWarned))); + Log::debug(sprintf('Will warn about %d overdue subscription(s).', count($toBeWarned))); if (0 === count($toBeWarned)) { Log::debug('No overdue subscriptions to warn about.'); @@ -84,7 +84,7 @@ class BillEventHandler Log::warning('should hit this ONCE'); try { - Notification::send($user, new SubscriptionsOverdueReminder($overdue)); + Notification::send($user, new SubscriptionsOverdueReminder($toBeWarned)); } catch (Exception $e) { $message = $e->getMessage(); if (str_contains($message, 'Bcc')) {