forked from noxious/server
!
This commit is contained in:
parent
78daac9d95
commit
c14ae36a94
@ -26,7 +26,7 @@ export default class CharacterConnectEvent extends BaseEvent {
|
||||
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) {
|
||||
this.sendNotificationAndLog('Character not found or does not belong to this user')
|
||||
|
Loading…
x
Reference in New Issue
Block a user