1
0
forked from noxious/server
This commit is contained in:
2025-01-03 21:50:16 +01:00
parent e843213b0a
commit 0b4420f956
5 changed files with 14 additions and 25 deletions

View File

@ -22,8 +22,10 @@ export default class CharacterConnectEvent extends BaseEvent {
return
}
/// DOWN HERE
const character = await CharacterRepository.getByUserAndId(this.socket.userId!, data.characterId, ['characterHair', 'characterHair'])
const character = await CharacterRepository.getByUserAndId(this.socket.userId!, data.characterId, [
'characterType',
'characterHair'
])
if (!character) {
this.emitError('Character not found or does not belong to this user')