1
0
mirror of synced 2024-12-04 19:17:58 +01:00

trying to fix ocm hof (again)

This commit is contained in:
Shiroi Kitsu 2022-11-28 15:36:38 +07:00
parent d96778112e
commit fe2fff25cf
2 changed files with 5 additions and 6 deletions

View File

@ -64,11 +64,15 @@ export default class CarModule extends Module {
if(getTarget)
{
console.log('Registered Opponents Available');
let getTargetTrail = await prisma.oCMTop1GhostTrail.findFirst({
where:{
carId: getTarget.opponentCarId,
competitionId: Number(getTarget.competitionId)
},
orderBy:{
dbId: 'desc'
}
});

View File

@ -89,11 +89,6 @@ export async function getOCMGhostTrail(carId: number, trailId: number)
where: {
carId: carId,
dbId: trailId,
competitionId: ocmEventDate!.competitionId,
periodId: 999999999
},
orderBy: {
playedAt: 'desc'
}
});
}