mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-02-26 22:59:24 +01:00
ocm
This commit is contained in:
parent
02646ca826
commit
b5f5ea471a
@ -356,15 +356,8 @@ export default class UserModule extends Module {
|
|||||||
|
|
||||||
for(let j=0; j<ocmTallyRecord.length; j++)
|
for(let j=0; j<ocmTallyRecord.length; j++)
|
||||||
{
|
{
|
||||||
if(carStates[i].dbId === ocmTallyRecord[j].carId)
|
carStates[i].eventJoined = true;
|
||||||
{
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
||||||
carStates[i].eventJoined = true;
|
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
|
||||||
}
|
|
||||||
if(carStates[i].dbId === ocmTallyRecord[j].carId && j === 0)
|
|
||||||
{
|
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_WON
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Current date is OCM qualifying day
|
// Current date is OCM qualifying day
|
||||||
@ -433,15 +426,10 @@ export default class UserModule extends Module {
|
|||||||
// Get OCM Data
|
// Get OCM Data
|
||||||
let ocmTallyRecord = await prisma.oCMTally.findMany({
|
let ocmTallyRecord = await prisma.oCMTally.findMany({
|
||||||
where:{
|
where:{
|
||||||
competitionId: ocmEventDate!.competitionId
|
competitionId: ocmEventDate!.competitionId,
|
||||||
|
periodId: 999999999
|
||||||
},
|
},
|
||||||
orderBy: [
|
orderBy: [
|
||||||
{
|
|
||||||
competitionId: 'desc',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
periodId: 'desc',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
result: 'desc',
|
result: 'desc',
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user