Skip to content

Commit

Permalink
Update session.get.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bnematzadeh committed Nov 11, 2024
1 parent 163e1ec commit e687030
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion server/api/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ function getRoutes(gladys) {
},
'get /api/v1/session': {
authenticated: true,
admin: true,
controller: sessionController.get,
},
// light
Expand Down
1 change: 1 addition & 0 deletions server/lib/session/session.get.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async function get(userId, options) {
order: [[optionsWithDefault.order_by, optionsWithDefault.order_dir]],
where: {
revoked: false,
user_id: userId,
},
});

Expand Down

0 comments on commit e687030

Please sign in to comment.