This commit is contained in:
Dennis Postma 2025-02-18 18:04:02 +01:00
parent 78daac9d95
commit c14ae36a94

View File

@ -26,7 +26,7 @@ export default class CharacterConnectEvent extends BaseEvent {
return return
} }
const character = await this.characterRepository.getByUserAndId(this.socket.userId, data.characterId) const character = await this.characterRepository.getByUserAndId(this.socket.userId!, data.characterId)
if (!character) { if (!character) {
this.sendNotificationAndLog('Character not found or does not belong to this user') this.sendNotificationAndLog('Character not found or does not belong to this user')