From 944d42571ef3c24f1ff4c2ca27783460c52db267 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 21 Apr 2022 16:33:14 +0200 Subject: [PATCH] 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);