Run mailer syncronously
This commit is contained in:
parent
e3e535e5b7
commit
167f71c883
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class EmailRefundPayment implements ShouldQueue
|
|||
$nmo->company = $this->company;
|
||||
$nmo->entity = $this->payment;
|
||||
|
||||
NinjaMailerJob::dispatch($nmo);
|
||||
(new NinjaMailerJob($nmo))->handle();
|
||||
|
||||
event(new PaymentWasEmailed($this->payment, $this->payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue