oops
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user