diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index 9fc9eee15..b4c17601d 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -146,7 +146,8 @@ class Products extends ProductController ->where('channel', $channel) ->where('locale', $locale) ->take(10) - ->query(fn ($query) => $query->select('id','name',DB::raw("'product' as type" )) + ->query(fn ($query) => $query->select('id','name') + ->addSelect(DB::raw("\'product\' as type" )) ->orderBy('name')) ->get();;