Skip to content

Commit

Permalink
Merge pull request #11 from cego/niza/order-by-id-and-not-created-at
Browse files Browse the repository at this point in the history
Updated orderby to to use id and not created_at
  • Loading branch information
nizacegodk authored May 5, 2021
2 parents 71111bb + 90e9251 commit 270c60b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/RequestLog/Controllers/RequestLogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ public function delete()
*/
protected function getFilteredLogQuery(Request $request)
{
return RequestLog::latest()
return RequestLog::query()
->whereStatusGroup($this->getFilteredStatusGroups($request))
->wherePath($request->get("path_regex"))
->whereCreatedAtDateBetween($request->get("from"), $request->get("to"));
->whereCreatedAtDateBetween($request->get("from"), $request->get("to"))
->orderByDesc('id');
}

/**
Expand Down

0 comments on commit 270c60b

Please sign in to comment.