mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 14:20:22 +08:00
Update session.last_touch always
This commit is contained in:
parent
e8ca6376be
commit
f0d3346ca7
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user