#174: Refactor character manager into zoneManager for better DX, major refactor of time and weather system (data is stored in DB now instead of JSON file), npm update, npm format, many other improvements
This commit is contained in:
@ -37,7 +37,7 @@ export async function Authentication(socket: TSocket, next: any) {
|
||||
return next(new Error('Authentication error'))
|
||||
}
|
||||
|
||||
socket.user = (await UserRepository.getById(decoded.id)) as User
|
||||
socket.userId = decoded.id
|
||||
next()
|
||||
})
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user