Skip to content

Commit

Permalink
Merge pull request #3708 from ColoredCow/master
Browse files Browse the repository at this point in the history
Release 14 Sep
  • Loading branch information
GauravGusain98 authored Sep 13, 2024
2 parents 87a6481 + f885962 commit 77a8e76
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 77a8e76

Please sign in to comment.