1
0
mirror of synced 2024-12-05 03:27:57 +01:00

add back what was deleted (windowsticker toogle save)

This commit is contained in:
ghkkk090 2022-07-22 18:57:41 +07:00
parent fa5ae14104
commit 5a48e90169

View File

@ -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: {