detect force finish
This commit is contained in:
parent
8f3be6b168
commit
9c6822b923
@ -259,6 +259,8 @@ export default class GameModule extends Module {
|
|||||||
|
|
||||||
if(timestamp <= 120)
|
if(timestamp <= 120)
|
||||||
{
|
{
|
||||||
|
console.log('Crown Force Finish Detected');
|
||||||
|
|
||||||
// Update the user status
|
// Update the user status
|
||||||
await prisma.carCrownDetect.update({
|
await prisma.carCrownDetect.update({
|
||||||
where:{
|
where:{
|
||||||
@ -324,7 +326,14 @@ export default class GameModule extends Module {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
await prisma.carCrownDetect.delete({
|
||||||
|
where:{
|
||||||
|
id: getCarCrown.id
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user