mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-12-01 10:37:28 +01:00
fix wrong variable
This commit is contained in:
parent
9af5f80447
commit
cf3da4c023
@ -589,7 +589,7 @@ export default class CarModule extends Module {
|
|||||||
aura: common.sanitizeInput(cars.aura),
|
aura: common.sanitizeInput(cars.aura),
|
||||||
auraMotif: common.sanitizeInput(cars.auraMotif),
|
auraMotif: common.sanitizeInput(cars.auraMotif),
|
||||||
rgStamp: common.sanitizeInput(body.rgStamp),
|
rgStamp: common.sanitizeInput(body.rgStamp),
|
||||||
lastPlayed: date
|
lastPlayedAt: date
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the car info
|
// Update the car info
|
||||||
|
@ -381,13 +381,13 @@ export default class UserModule extends Module {
|
|||||||
carStates[i].eventJoined = true;
|
carStates[i].eventJoined = true;
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
carStates[i].eventJoined = false;
|
carStates[i].eventJoined = false;
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Current date is OCM qualifying day
|
// Current date is OCM qualifying day
|
||||||
else if(ocmEventDate!.qualifyingPeriodStartAt < date && ocmEventDate!.qualifyingPeriodCloseAt > date)
|
else if(ocmEventDate!.qualifyingPeriodStartAt < date && ocmEventDate!.qualifyingPeriodCloseAt > date)
|
||||||
{
|
{
|
||||||
@ -419,13 +419,13 @@ export default class UserModule extends Module {
|
|||||||
carStates[i].eventJoined = true;
|
carStates[i].eventJoined = true;
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_PARTICIPATED
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_PARTICIPATED
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
carStates[i].eventJoined = false;
|
carStates[i].eventJoined = false;
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Current date is OCM ended
|
// Current date is OCM ended
|
||||||
else if(ocmEventDate!.competitionCloseAt < date && ocmEventDate!.competitionEndAt > date)
|
else if(ocmEventDate!.competitionCloseAt < date && ocmEventDate!.competitionEndAt > date)
|
||||||
{
|
{
|
||||||
@ -457,6 +457,7 @@ export default class UserModule extends Module {
|
|||||||
carStates[i].eventJoined = true;
|
carStates[i].eventJoined = true;
|
||||||
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
carStates[i].eventJoined = false;
|
carStates[i].eventJoined = false;
|
||||||
@ -464,7 +465,6 @@ export default class UserModule extends Module {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(!ocmEventDate)
|
if(!ocmEventDate)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user