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:
parent
4554e7935a
commit
26f29cdf79
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user