mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
create path refactor, removed debug log
This commit is contained in:
parent
4bb8059986
commit
1a3c806e66
19 changed files with 57 additions and 209 deletions
src/middlewares
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue