diff --git a/app/Jobs/Inventory/AdjustProductInventory.php b/app/Jobs/Inventory/AdjustProductInventory.php index 79b796398838..4673367b4b02 100644 --- a/app/Jobs/Inventory/AdjustProductInventory.php +++ b/app/Jobs/Inventory/AdjustProductInventory.php @@ -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); } }