1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Minor fixes for reminders

This commit is contained in:
David Bomba 2022-11-27 13:19:50 +11:00
parent 61b0308a6f
commit 5544207687
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class EmailEntity implements ShouldQueue
*
* @return void
*/
public function handle()
public function handle() :void
{
/* Don't fire emails if the company is disabled */
if ($this->company->is_disabled) {

View File

@ -136,7 +136,7 @@ class ReminderJob implements ShouldQueue
(Ninja::isSelfHost() || $invoice->company->account->isPaidHostedClient())) {
$invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) {
EmailEntity::dispatchSync($invitation, $invitation->company, $reminder_template);
EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);
nlog("Firing reminder email for invoice {$invoice->number} - {$reminder_template}");
});