Skip to content

Commit

Permalink
change presence order to asc
Browse files Browse the repository at this point in the history
  • Loading branch information
akechi17 committed Aug 12, 2024
1 parent 3568f89 commit 0ad671b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PresenceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function index(Request $request)
$companyId = $request->query('company');
! $companyId ? abort(400, 'Missing company id') : $companyId = decrypt($companyId);

$presences = Presence::where('user_id', $userId)->where('company_id', $companyId)->orderBy('date', 'desc')->paginate(35);
$presences = Presence::where('user_id', $userId)->where('company_id', $companyId)->orderBy('date', 'asc')->paginate(35);
$presences->withPath('/presences')->withQueryString();

if ($presences->count() > 0) {
Expand Down
2 changes: 1 addition & 1 deletion client
Submodule client updated from a33bd4 to 7cfecc

0 comments on commit 0ad671b

Please sign in to comment.