diff --git a/packages/Sarga/API/Http/Controllers/SearchController.php b/packages/Sarga/API/Http/Controllers/SearchController.php index 7c2a8f25a..e8149d8b9 100644 --- a/packages/Sarga/API/Http/Controllers/SearchController.php +++ b/packages/Sarga/API/Http/Controllers/SearchController.php @@ -75,11 +75,12 @@ class SearchController extends V1Controller // ->where('locale', $locale) // ->addSelect(DB::raw("\'product\' as type" )) - ->orderBy('name') + ->take(10) ->query(fn ($query) => $query->select('id','name','product_id','description')) ->where('status', 1) ->where('visible_individually', 1) + ->orderBy('name') // ->take(10) ->get();