forked from noxious/server
Continuation of refactor
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user