diff --git a/src/util/ghost/ghost_ocm.ts b/src/util/ghost/ghost_ocm.ts index dd5bd6d..c53a141 100644 --- a/src/util/ghost/ghost_ocm.ts +++ b/src/util/ghost/ghost_ocm.ts @@ -300,11 +300,11 @@ export async function ocmTallying(body: wm.protobuf.LoadGhostCompetitionInfoRequ // Get the Top 1 Advantage if(top1advantage === null) { - top1advantage = OCMTally[i].result; + top1advantage = OCMTally[0].result; let getTrail = await prisma.oCMGhostTrail.findFirst({ where:{ - carId: OCMTally[i].carId, + carId: OCMTally[0].carId, competitionId: body.competitionId, ocmMainDraw: true }