diff --git a/f0ck.sql b/f0ck.sql index 0c0c5c1..21a1c6d 100644 --- a/f0ck.sql +++ b/f0ck.sql @@ -422,7 +422,6 @@ CREATE TABLE public.user_sessions ( browser character varying(255) NOT NULL, created_at integer NOT NULL, last_used integer NOT NULL, - last_action character varying(255) NOT NULL, kmsi smallint DEFAULT '0'::smallint NOT NULL ); diff --git a/src/index.mjs b/src/index.mjs index 810178b..32c8916 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -94,9 +94,8 @@ process.on('unhandledRejection', err => { update "user_sessions" set ${ db({ last_used: ~~(Date.now() / 1e3), - last_action: req.url.pathname, browser: req.headers['user-agent'] - }, 'last_used', 'last_action', 'browser') + }, 'last_used', 'browser') } where id = ${+user[0].sess_id} `; diff --git a/views/admin/sessions.html b/views/admin/sessions.html index 65c6642..61d7a9e 100644 --- a/views/admin/sessions.html +++ b/views/admin/sessions.html @@ -10,7 +10,6 @@ browser created_at last_used - last_action @@ -23,7 +22,6 @@ {{ session.browser }} {{ new Date(session.created_at * 1e3).toLocaleString("de-DE") }} {{ new Date(session.last_used * 1e3).toLocaleString("de-DE") }} - {{ session.last_action }} @endeach