1
0
forked from noxious/server

Continuation of refactor

This commit is contained in:
2024-12-28 20:40:05 +01:00
parent 6dda79f8b2
commit e1a6f650fb
27 changed files with 158 additions and 236 deletions

View File

@ -1,6 +1,6 @@
import { User } from '@prisma/client'
import { appLogger } from '#application/logger'
import Logger, { LoggerType } from '#application/logger'
type TLoggedInUsers = {
users: User[]
@ -8,10 +8,11 @@ type TLoggedInUsers = {
class UserManager {
private loggedInUsers: TLoggedInUsers[] = []
private logger = Logger.type(LoggerType.APP)
// Method to initialize user manager
public async boot() {
appLogger.info('User manager loaded')
this.logger.info('User manager loaded')
}
// Function that adds user to logged in users