add handling if itemIdVal is 0
This commit is contained in:
parent
cd470fe2c4
commit
fd38d09a83
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user