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

Merge pull request #10 from ghkkk090/master

add back what was deleted (windowsticker toogle save)
This commit is contained in:
Luna 2022-07-22 12:59:56 +01:00 committed by GitHub
commit a41688e8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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