Run mailer syncronously
This commit is contained in:
parent
3d8fee2d5d
commit
c6c0bb4d4b
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class EmailPayment 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