1
0
forked from noxious/server
This commit is contained in:
2024-08-22 20:00:37 +02:00
parent ff7664bae0
commit c4b50ec811
16 changed files with 97 additions and 80 deletions

View File

@ -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) {

View File

@ -29,7 +29,8 @@ class ZoneRepository {
include: {
zoneEventTiles: {
include: {
zone: true
zone: true,
teleport: true
}
},
zoneObjects: {