From 574b4f374df7439ed9a57112d88bdf0e5278d988 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Fri, 12 Jan 2024 12:27:14 +0100 Subject: [PATCH] fix: Issues with default sort (disabled for now) --- app/Http/Controllers/API/DataController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Http/Controllers/API/DataController.php b/app/Http/Controllers/API/DataController.php index cf9926a0..45a04072 100644 --- a/app/Http/Controllers/API/DataController.php +++ b/app/Http/Controllers/API/DataController.php @@ -56,7 +56,6 @@ public function all(Request $request, $model) ->where('is_public', true) ->allowedSorts($allowedSorts) ->allowedFilters($allowedFilters) - ->defaultSort($defaultSort) ->paginate($per_page) ->appends(request()->query()) ); @@ -66,7 +65,6 @@ public function all(Request $request, $model) ->where('is_public', true) ->allowedSorts($allowedSorts) ->allowedFilters($allowedFilters) - ->defaultSort($defaultSort) ->paginate($per_page) ->appends(request()->query()) ); @@ -76,7 +74,6 @@ public function all(Request $request, $model) ->where('is_public', true) ->allowedSorts($allowedSorts) ->allowedFilters($allowedFilters) - ->defaultSort($defaultSort) ->paginate($per_page) ->appends(request()->query()) );