From 5a48e90169e27b298a91632a820ae8cd730710fd Mon Sep 17 00:00:00 2001 From: ghkkk090 <108461408+ghkkk090@users.noreply.github.com> Date: Fri, 22 Jul 2022 18:57:41 +0700 Subject: [PATCH] add back what was deleted (windowsticker toogle save) --- src/modules/game.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/game.ts b/src/modules/game.ts index d794fec..f8fe24c 100644 --- a/src/modules/game.ts +++ b/src/modules/game.ts @@ -305,6 +305,7 @@ export default class GameModule extends Module { title: body.car!.title!, tunePower: body.car!.tunePower!, tuneHandling: body.car!.tuneHandling!, + windowSticker: body.car!.windowSticker!, } }) await prisma.carSettings.update({ @@ -1199,6 +1200,11 @@ export default class GameModule extends Module { } else { saveEx.rivalMarker = car?.rivalMarker; } + if (body.car?.windowSticker !== null && body.car?.windowSticker !== undefined) { + saveEx.windowSticker = body.car?.windowSticker!; + } else { + saveEx.windowSticker = car?.windowSticker; + } await prisma.carSettings.update({ where: {