mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-01-19 12:08:39 +01:00
Update game.ts
This commit is contained in:
parent
7959163c5c
commit
2f9ad45902
@ -1977,15 +1977,19 @@ export default class GameModule extends Module {
|
||||
}
|
||||
})
|
||||
|
||||
if(userData!.windowStickerString !== saveEx.windowStickerString){
|
||||
await prisma.car.updateMany({
|
||||
where: {
|
||||
userId: userData!.userId
|
||||
},
|
||||
data: {
|
||||
windowStickerString: saveEx.windowStickerString
|
||||
}
|
||||
})
|
||||
if (body.car?.windowStickerString !== null && body.car?.windowStickerString !== undefined)
|
||||
{
|
||||
if(userData!.windowStickerString !== saveEx.windowStickerString)
|
||||
{
|
||||
await prisma.car.updateMany({
|
||||
where: {
|
||||
userId: userData!.userId
|
||||
},
|
||||
data: {
|
||||
windowStickerString: saveEx.windowStickerString
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Get car item
|
||||
|
Loading…
x
Reference in New Issue
Block a user