forked from noxious/server
idk
This commit is contained in:
@ -66,15 +66,15 @@ class CharacterRepository {
|
||||
}
|
||||
}
|
||||
|
||||
async updatePosition(id: number, position_x: number, position_y: number): Promise<Character | null> {
|
||||
async updatePosition(id: number, positionX: number, positionY: number): Promise<Character | null> {
|
||||
try {
|
||||
return await prisma.character.update({
|
||||
where: {
|
||||
id: id
|
||||
},
|
||||
data: {
|
||||
position_x,
|
||||
position_y
|
||||
positionX,
|
||||
positionY
|
||||
}
|
||||
})
|
||||
} catch (error: any) {
|
||||
|
@ -29,7 +29,8 @@ class ZoneRepository {
|
||||
include: {
|
||||
zoneEventTiles: {
|
||||
include: {
|
||||
zone: true
|
||||
zone: true,
|
||||
teleport: true
|
||||
}
|
||||
},
|
||||
zoneObjects: {
|
||||
|
Reference in New Issue
Block a user