mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Fix count for overdue bills.
This commit is contained in:
@@ -69,7 +69,7 @@ class BillEventHandler
|
|||||||
|
|
||||||
return;
|
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)) {
|
if (0 === count($toBeWarned)) {
|
||||||
Log::debug('No overdue subscriptions to warn about.');
|
Log::debug('No overdue subscriptions to warn about.');
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ class BillEventHandler
|
|||||||
Log::warning('should hit this ONCE');
|
Log::warning('should hit this ONCE');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Notification::send($user, new SubscriptionsOverdueReminder($overdue));
|
Notification::send($user, new SubscriptionsOverdueReminder($toBeWarned));
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$message = $e->getMessage();
|
$message = $e->getMessage();
|
||||||
if (str_contains($message, 'Bcc')) {
|
if (str_contains($message, 'Bcc')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user