order by last_used

This commit is contained in:
Flummi 2021-12-20 17:56:10 +01:00
parent 37789979c4
commit 99124be16f

View File

@ -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", {