1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-01-31 22:15:20 +01:00

Merge pull request #13 from ghkkk090/master

add error handling if itemIdVal is 0
This commit is contained in:
Luna 2022-07-24 02:42:59 +01:00 committed by GitHub
commit 32883c9884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,6 +421,7 @@ export default class GameModule extends Module {
itemIdVal = 28;
}
if(itemIdVal !== 0){
console.log(`carID ${body.carId} do n*100 play, continue give reward... meter ID ${itemIdVal}`);
await prisma.carItem.create({
data: {
@ -431,6 +432,7 @@ export default class GameModule extends Module {
}
});
}
}
// Update user
let user = await prisma.user.findFirst({