Update session.last_touch always

This commit is contained in:
KernelDeimos 2024-04-17 13:03:32 -04:00
parent e8ca6376be
commit f0d3346ca7

View File

@ -58,7 +58,10 @@ class SessionService extends BaseService {
async get_session_ (uuid) {
let session = this.sessions[uuid];
if ( session ) return session;
if ( session ) {
session.last_touch = Date.now();
return session;
}
;[session] = await this.db.read(
"SELECT * FROM `sessions` WHERE `uuid` = ? LIMIT 1",
[uuid],