diff --git a/src/util/games/ghost.ts b/src/util/games/ghost.ts index cb932f0..9f0cfbd 100644 --- a/src/util/games/ghost.ts +++ b/src/util/games/ghost.ts @@ -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'