remove last_action, nobody cares
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 1s
Some checks failed
fetch npm modules / f0ck the f0cker (push) Failing after 1s
This commit is contained in:
parent
65be5dc3e8
commit
b997c1c530
1
f0ck.sql
1
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
|
||||
);
|
||||
|
||||
|
@ -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}
|
||||
`;
|
||||
|
@ -10,7 +10,6 @@
|
||||
<td>browser</td>
|
||||
<td>created_at</td>
|
||||
<td>last_used</td>
|
||||
<td>last_action</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -23,7 +22,6 @@
|
||||
<td>{{ session.browser }}</td>
|
||||
<td>{{ new Date(session.created_at * 1e3).toLocaleString("de-DE") }}</td>
|
||||
<td>{{ new Date(session.last_used * 1e3).toLocaleString("de-DE") }}</td>
|
||||
<td>{{ session.last_action }}</td>
|
||||
</tr>
|
||||
@endeach
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user