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)');
|
||||
|
||||
// Defeated HoF Ghost
|
||||
if(body.rgResult!.opponents![0].result >= 0)
|
||||
{
|
||||
// Delete all the records
|
||||
await prisma.ghostRegisteredFromTerminal.deleteMany({
|
||||
where:{
|
||||
carId: Number(body.carId)
|
||||
}
|
||||
});
|
||||
}
|
||||
// Delete all the records
|
||||
await prisma.ghostRegisteredFromTerminal.deleteMany({
|
||||
where:{
|
||||
carId: Number(body.carId)
|
||||
}
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user