1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-01-19 17:58:40 +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,7 +1977,10 @@ export default class GameModule extends Module {
} }
}) })
if(userData!.windowStickerString !== saveEx.windowStickerString){ if (body.car?.windowStickerString !== null && body.car?.windowStickerString !== undefined)
{
if(userData!.windowStickerString !== saveEx.windowStickerString)
{
await prisma.car.updateMany({ await prisma.car.updateMany({
where: { where: {
userId: userData!.userId userId: userData!.userId
@ -1987,6 +1990,7 @@ export default class GameModule extends Module {
} }
}) })
} }
}
// Get car item // Get car item
if(body.earnedItems.length !== 0){ if(body.earnedItems.length !== 0){