From 944d42571ef3c24f1ff4c2ca27783460c52db267 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 21 Apr 2022 16:33:14 +0200 Subject: [PATCH 1/2] oops --- src/inc/routes/settings.mjs | 4 ---- src/inc/sql.mjs | 6 ------ 2 files changed, 10 deletions(-) diff --git a/src/inc/routes/settings.mjs b/src/inc/routes/settings.mjs index c3d0b99..2e39af4 100644 --- a/src/inc/routes/settings.mjs +++ b/src/inc/routes/settings.mjs @@ -9,10 +9,6 @@ const auth = async (req, res, next) => { export default (router, tpl) => { router.group(/^\/settings/, group => { group.get(/$/, auth, async (req, res) => { - /*const sessions = await sql("user_sessions") - .where("user_id", req.session.id) - .orderBy("last_used", "desc");*/ - const sessions = await db` select * from user_sessions diff --git a/src/inc/sql.mjs b/src/inc/sql.mjs index 01e544e..ffacf9d 100644 --- a/src/inc/sql.mjs +++ b/src/inc/sql.mjs @@ -2,10 +2,4 @@ import postgres from "postgres"; import cfg from "./config.mjs"; -/*export default knex({ - client: 'pg', - connection: cfg.sql -});*/ - -//export const db = postgres(cfg.sql); export default postgres(cfg.sql); From 72267a87403c2dc8da68950ed799a22e661b14a1 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 23 Apr 2022 20:47:22 +0200 Subject: [PATCH 2/2] ... --- src/index.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.mjs b/src/index.mjs index 3017350..48a8e36 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -126,7 +126,4 @@ import flummpress from "flummpress"; app.listen(cfg.websrv.port); - db.subscribe('*:items', (row, { command, old }) => { - console.log(command, row, old); - }); })();