1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-01-19 15:18:39 +01:00

Update game.ts

This commit is contained in:
ghkkk090 2022-08-09 22:19:47 +07:00 committed by GitHub
parent 7959163c5c
commit 2f9ad45902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1977,15 +1977,19 @@ export default class GameModule extends Module {
} }
}) })
if(userData!.windowStickerString !== saveEx.windowStickerString){ if (body.car?.windowStickerString !== null && body.car?.windowStickerString !== undefined)
await prisma.car.updateMany({ {
where: { if(userData!.windowStickerString !== saveEx.windowStickerString)
userId: userData!.userId {
}, await prisma.car.updateMany({
data: { where: {
windowStickerString: saveEx.windowStickerString userId: userData!.userId
} },
}) data: {
windowStickerString: saveEx.windowStickerString
}
})
}
} }
// Get car item // Get car item