1
0
mirror of synced 2025-01-31 12:13:43 +01:00

hopefully fix ocm HoF

This commit is contained in:
ghkkk090 2022-09-12 12:52:42 +07:00
parent 1ea17a1abf
commit cf4fd399f6

View File

@ -300,11 +300,11 @@ export async function ocmTallying(body: wm.protobuf.LoadGhostCompetitionInfoRequ
// Get the Top 1 Advantage // Get the Top 1 Advantage
if(top1advantage === null) if(top1advantage === null)
{ {
top1advantage = OCMTally[i].result; top1advantage = OCMTally[0].result;
let getTrail = await prisma.oCMGhostTrail.findFirst({ let getTrail = await prisma.oCMGhostTrail.findFirst({
where:{ where:{
carId: OCMTally[i].carId, carId: OCMTally[0].carId,
competitionId: body.competitionId, competitionId: body.competitionId,
ocmMainDraw: true ocmMainDraw: true
} }