From c0f448bf3a2fdb38281329d567e7812605c31613 Mon Sep 17 00:00:00 2001 From: kaioken Date: Tue, 30 Jul 2024 23:37:57 -0400 Subject: [PATCH] refact: message cache --- src/Domains/Inventory/Products/Observers/ProductsObserver.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Domains/Inventory/Products/Observers/ProductsObserver.php b/src/Domains/Inventory/Products/Observers/ProductsObserver.php index bc356e498..718f79128 100644 --- a/src/Domains/Inventory/Products/Observers/ProductsObserver.php +++ b/src/Domains/Inventory/Products/Observers/ProductsObserver.php @@ -13,9 +13,8 @@ public function saved(Products $products): void if ($products->wasChanged('products_types_id') && $products->productsTypes()->exists()) { $products->productsTypes->setTotalProducts(); } - - $products->clearLightHouseCache(); + $products->clearLightHouseCache(); } public function created(Products $products): void