1
0
mirror of synced 2024-11-12 01:10:47 +01:00

Update window sticker toggle save

This commit is contained in:
ghkkk090 2022-07-22 15:36:21 +07:00
parent d7e9057659
commit 0d0b0f0edc

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({
@ -1133,7 +1134,6 @@ export default class GameModule extends Module {
settings: true
}
});
let saveEx: any = {};
if (body.car?.wheel !== null && body.car?.wheel !== undefined) {
saveEx.wheel = body.car?.wheel!;
@ -1210,6 +1210,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: {