Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Show most recent sessions first
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jul 26, 2019
1 parent 20c5089 commit f37b773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "staart-manager",
"version": "1.0.107",
"version": "1.0.108",
"main": "index.js",
"repository": "[email protected]:AnandChowdhary/staart.git",
"author": "Anand Chowdhary <[email protected]>",
Expand Down Expand Up @@ -135,5 +135,5 @@
"setup"
],
"snyk": true,
"staart-version": "1.0.107"
"staart-version": "1.0.108"
}
3 changes: 2 additions & 1 deletion src/crud/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ export const getUserSessions = async (userId: number, query: KeyValue) => {
conditions: {
userId
},
...query
...query,
sort: "desc"
});
data.data.forEach((item, index) => {
delete data.data[index].jwtToken;
Expand Down

0 comments on commit f37b773

Please sign in to comment.