1
0
mirror of synced 2025-02-24 05:53:25 +01:00

detect force finish

This commit is contained in:
Shiroi Kitsu 2023-03-30 13:21:18 +07:00
parent 8f3be6b168
commit 9c6822b923

View File

@ -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
}
});
} }
} }
} }