1
0
mirror of synced 2024-12-05 03:27:57 +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'