From c52a3dd8713739dd8acc79ee9307785735c7f02f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 22 Jan 2023 17:52:12 +1100 Subject: [PATCH] Send inventory notifications as a dispatched job --- app/Jobs/Inventory/AdjustProductInventory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }