trying to fix ocm hof (again)
This commit is contained in:
parent
d96778112e
commit
fe2fff25cf
@ -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'
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user