1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2024-12-01 02:27:22 +01:00

ghost play count retiring ocm

This commit is contained in:
ghkkk090 2022-09-07 11:31:42 +07:00
parent 4554e7935a
commit 26f29cdf79

View File

@ -581,6 +581,21 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
}
}
}
// Ghost update data
let dataGhost = {
rgPlayCount: common.sanitizeInput(body.rgResult!.rgPlayCount),
}
// Update the car properties
await prisma.car.update({
where: {
carId: body.carId
},
data: {
...dataGhost
}
});
}
// Return the value to 'BASE_PATH/src/modules/game.ts'