forked from noxious/server
yeet
This commit is contained in:
parent
0cadbc33b9
commit
4d50edd5dd
@ -22,6 +22,7 @@ export default class CharacterConnectEvent extends BaseEvent {
|
||||
return
|
||||
}
|
||||
|
||||
/// DOWN HERE
|
||||
const character = await CharacterRepository.getByUserAndId(this.socket.userId!, data.characterId, ['characterHair', 'characterHair'])
|
||||
|
||||
if (!character) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { BaseRepository } from '#application/base/baseRepository'
|
||||
import { UUID } from '#application/types'
|
||||
import { Character } from '#entities/character'
|
||||
import { RequiredEntityData } from '@mikro-orm/core'
|
||||
|
||||
class CharacterRepository extends BaseRepository {
|
||||
async getByUserId(userId: UUID, populate?: any): Promise<Character[]> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user