order by last_used
This commit is contained in:
parent
37789979c4
commit
99124be16f
|
@ -83,7 +83,7 @@ export default (router, tpl) => {
|
|||
const rows = await sql("user_sessions")
|
||||
.leftJoin("user", "user.id", "user_sessions.user_id")
|
||||
.select("user_sessions.*", "user.user")
|
||||
.orderBy("user.id");
|
||||
.orderBy("user_sessions.last_used", "desc");
|
||||
|
||||
res.reply({
|
||||
body: tpl.render("admin/sessions", {
|
||||
|
|
Loading…
Reference in New Issue
Block a user