1
0
forked from noxious/server

More cache stuff

This commit is contained in:
2025-01-07 22:20:27 +01:00
parent 010454914b
commit 39ec4daa06
12 changed files with 222 additions and 166 deletions

View File

@ -12,9 +12,6 @@ export default class CharacterListEvent extends BaseEvent {
const characterRepository = new CharacterRepository()
let characters: Character[] = await characterRepository.getByUserId(this.socket.userId!)
// Populate characters with characterType and characterHair
await characterRepository.getEntityManager().populate(characters, ['characterType', 'characterHair'])
this.socket.emit('character:list', characters)
} catch (error: any) {
this.logger.error('character:list error', error.message)