This commit is contained in:
Flummi 2022-04-21 16:33:14 +02:00
parent 3d6757fcce
commit 944d42571e
2 changed files with 0 additions and 10 deletions

View File

@ -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

View File

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