From fde27e8e0bd432cab2ff8de17f3716037cafbaf6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 15 Apr 2023 08:28:03 +1000 Subject: [PATCH 1/2] Minor fixes for client routes --- routes/client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/client.php b/routes/client.php index 0af6e33829f0..80f9b60549a2 100644 --- a/routes/client.php +++ b/routes/client.php @@ -142,7 +142,7 @@ Route::get('phantom/{entity}/{invitation_key}', [Phantom::class, 'displayInvitat Route::fallback(function () { - if (Ninja::isSelfHost() && Account::first()->set_react_as_default_ap) { + if (Ninja::isSelfHost() && Account::first()?->set_react_as_default_ap) { $account = Account::first(); From d2c2000f3d9ef7e0aeb024522e030d6415f72676 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 15 Apr 2023 08:40:50 +1000 Subject: [PATCH 2/2] Minor fixes for logging --- app/Jobs/Inventory/AdjustProductInventory.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Jobs/Inventory/AdjustProductInventory.php b/app/Jobs/Inventory/AdjustProductInventory.php index e46ac69398f4..34d7a6192a9d 100644 --- a/app/Jobs/Inventory/AdjustProductInventory.php +++ b/app/Jobs/Inventory/AdjustProductInventory.php @@ -115,9 +115,6 @@ class AdjustProductInventory implements ShouldQueue $p->in_stock_quantity -= $i->quantity; $p->saveQuietly(); - nlog("threshold ".$p->stock_notification_threshold); - nlog("stock q".$p->in_stock_quantity); - nlog("p stock not".$p->stock_notification_threshold); if ($this->company->stock_notification && $p->stock_notification && $p->stock_notification_threshold && $p->in_stock_quantity <= $p->stock_notification_threshold) { $this->notifyStockLevels($p, 'product');