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);