Skip to content

Commit

Permalink
Merge pull request #3707 from ColoredCow/fix/schedule-invoice-reminder
Browse files Browse the repository at this point in the history
Fix/schedule invoice reminder
  • Loading branch information
GauravGusain98 authored Sep 13, 2024
2 parents f9b235a + b7ade49 commit f885962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/Invoice/Console/SendUpcomingInvoiceReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function handle()
{
$service = app(InvoiceService::class);
$upcomingInvoices = $service->getScheduledInvoicesForMail();
Mail::send(new SendInvoiceReminderMail($upcomingInvoices));
if ($upcomingInvoices->count()) {
Mail::send(new SendInvoiceReminderMail($upcomingInvoices));
}
}
}

0 comments on commit f885962

Please sign in to comment.