Send inventory notifications as a dispatched job
This commit is contained in:
parent
3e61408ba5
commit
c52a3dd871
1 changed files with 2 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ class AdjustProductInventory implements ShouldQueue
|
|||
// {
|
||||
|
||||
// $nmo->to_user = $cu->user;
|
||||
// (new NinjaMailerJob($nmo))->handle();
|
||||
// NinjaMailerJob::dispatch($nmo);
|
||||
|
||||
// }
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ class AdjustProductInventory implements ShouldQueue
|
|||
|
||||
$nmo->to_user = $this->company->owner();
|
||||
|
||||
(new NinjaMailerJob($nmo))->handle();
|
||||
NinjaMailerJob::dispatch($nmo);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue