remove last_action, nobody cares
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 1s

This commit is contained in:
Flummi 2025-01-09 10:58:06 +01:00
parent 65be5dc3e8
commit b997c1c530
3 changed files with 1 additions and 5 deletions

View File

@ -422,7 +422,6 @@ CREATE TABLE public.user_sessions (
browser character varying(255) NOT NULL, browser character varying(255) NOT NULL,
created_at integer NOT NULL, created_at integer NOT NULL,
last_used integer NOT NULL, last_used integer NOT NULL,
last_action character varying(255) NOT NULL,
kmsi smallint DEFAULT '0'::smallint NOT NULL kmsi smallint DEFAULT '0'::smallint NOT NULL
); );

View File

@ -94,9 +94,8 @@ process.on('unhandledRejection', err => {
update "user_sessions" set ${ update "user_sessions" set ${
db({ db({
last_used: ~~(Date.now() / 1e3), last_used: ~~(Date.now() / 1e3),
last_action: req.url.pathname,
browser: req.headers['user-agent'] browser: req.headers['user-agent']
}, 'last_used', 'last_action', 'browser') }, 'last_used', 'browser')
} }
where id = ${+user[0].sess_id} where id = ${+user[0].sess_id}
`; `;

View File

@ -10,7 +10,6 @@
<td>browser</td> <td>browser</td>
<td>created_at</td> <td>created_at</td>
<td>last_used</td> <td>last_used</td>
<td>last_action</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -23,7 +22,6 @@
<td>{{ session.browser }}</td> <td>{{ session.browser }}</td>
<td>{{ new Date(session.created_at * 1e3).toLocaleString("de-DE") }}</td> <td>{{ new Date(session.created_at * 1e3).toLocaleString("de-DE") }}</td>
<td>{{ new Date(session.last_used * 1e3).toLocaleString("de-DE") }}</td> <td>{{ new Date(session.last_used * 1e3).toLocaleString("de-DE") }}</td>
<td>{{ session.last_action }}</td>
</tr> </tr>
@endeach @endeach
</tbody> </tbody>