create path refactor, removed debug log

This commit is contained in:
mrfry 2023-05-01 10:56:26 +02:00
parent 4bb8059986
commit 1a3c806e66
19 changed files with 57 additions and 209 deletions

View file

@ -20,7 +20,6 @@
import cookie from 'cookie'
import logger from '../utils/logger'
import dbtools from '../utils/dbtools'
import { Socket } from '../types/basicTypes'
@ -66,8 +65,6 @@ export default function SocketAuth(options: Options): any {
}
function GetUserBySessionID(db: any, sessionID: string) {
logger.DebugLog(`Getting user from db`, 'auth', 2)
const session = dbtools.Select(db, 'sessions', {
id: sessionID,
})[0]