Skip to content

Commit

Permalink
fix(be): sort session history in descending order (#224)
Browse files Browse the repository at this point in the history
* fix: sort session history in descending order

* fix: order by 'createdAt'
  • Loading branch information
wlgh1553 authored Nov 28, 2024
1 parent 9f239b6 commit 54dc05a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/server/src/sessions/sessions.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export class SessionsRepository {
expiredAt: true,
createdAt: true,
},
orderBy: {
createdAt: 'desc',
},
});
return sessions;
} catch (error) {
Expand Down

0 comments on commit 54dc05a

Please sign in to comment.