Skip to content

Commit

Permalink
Corrige le tri des congés
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Jun 28, 2024
1 parent 6d0e5c9 commit 13e8f86
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export class LeaveRequestRepository implements ILeaveRequestRepository {
'user.lastName'
])
.innerJoin('leaveRequest.user', 'user')
.orderBy('leaveRequest.status', 'DESC')
.addOrderBy('leaveRequest.startDate', 'DESC')
.orderBy('leaveRequest.startDate', 'DESC')
.limit(MAX_ITEMS_PER_PAGE)
.offset((page - 1) * MAX_ITEMS_PER_PAGE);

Expand Down

0 comments on commit 13e8f86

Please sign in to comment.