Send inventory notifications as a dispatched job

This commit is contained in:
David Bomba 2023-01-22 17:52:12 +11:00
parent 3e61408ba5
commit c52a3dd871

View File

@ -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);
}
}