also delete the challenge hof ghost when lost
This commit is contained in:
parent
5ab4c13992
commit
ab23f99e6c
@ -442,16 +442,12 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
|
|||||||
{
|
{
|
||||||
console.log('OCM Ghost Mode Found - Appointment (VS HoF Ghost)');
|
console.log('OCM Ghost Mode Found - Appointment (VS HoF Ghost)');
|
||||||
|
|
||||||
// Defeated HoF Ghost
|
// Delete all the records
|
||||||
if(body.rgResult!.opponents![0].result >= 0)
|
await prisma.ghostRegisteredFromTerminal.deleteMany({
|
||||||
{
|
where:{
|
||||||
// Delete all the records
|
carId: Number(body.carId)
|
||||||
await prisma.ghostRegisteredFromTerminal.deleteMany({
|
}
|
||||||
where:{
|
});
|
||||||
carId: Number(body.carId)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user