From 29621dc85f803588a6cc380e167ddf78aa60c6e0 Mon Sep 17 00:00:00 2001 From: merdan Date: Fri, 23 Sep 2022 17:05:39 +0500 Subject: [PATCH] menu brand links test ready --- packages/Sarga/API/Http/Controllers/SearchController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/Sarga/API/Http/Controllers/SearchController.php b/packages/Sarga/API/Http/Controllers/SearchController.php index 9cfb4bed9..1c2adb588 100644 --- a/packages/Sarga/API/Http/Controllers/SearchController.php +++ b/packages/Sarga/API/Http/Controllers/SearchController.php @@ -70,12 +70,11 @@ class SearchController extends V1Controller $locale = core()->getRequestedLocaleCode(); $products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key)) - ->where('visible_individually', 1) - ->where('channel', $channel) ->where('locale', $locale) ->take(10) ->query(fn ($query) => $query->select('id','name','product_id','description') ->where('status', 1) + ->where('visible_individually', 1) // ->addSelect(DB::raw("\'product\' as type" )) ->orderBy('name')) ->get();