1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-02-26 13:22:00 +01:00

fix wrong variable

This commit is contained in:
ghkkk090 2022-08-25 23:16:59 +07:00
parent 9af5f80447
commit cf3da4c023
2 changed files with 16 additions and 16 deletions

View File

@ -589,7 +589,7 @@ export default class CarModule extends Module {
aura: common.sanitizeInput(cars.aura),
auraMotif: common.sanitizeInput(cars.auraMotif),
rgStamp: common.sanitizeInput(body.rgStamp),
lastPlayed: date
lastPlayedAt: date
}
// Update the car info

View File

@ -381,13 +381,13 @@ export default class UserModule extends Module {
carStates[i].eventJoined = true;
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
}
}
else
{
carStates[i].eventJoined = false;
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
}
}
}
// Current date is OCM qualifying day
else if(ocmEventDate!.qualifyingPeriodStartAt < date && ocmEventDate!.qualifyingPeriodCloseAt > date)
{
@ -419,13 +419,13 @@ export default class UserModule extends Module {
carStates[i].eventJoined = true;
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_PARTICIPATED
}
}
else
{
carStates[i].eventJoined = false;
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
}
}
}
// Current date is OCM ended
else if(ocmEventDate!.competitionCloseAt < date && ocmEventDate!.competitionEndAt > date)
{
@ -457,6 +457,7 @@ export default class UserModule extends Module {
carStates[i].eventJoined = true;
carStates[i].competitionState = wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_QUALIFIED
}
}
else
{
carStates[i].eventJoined = false;
@ -464,7 +465,6 @@ export default class UserModule extends Module {
}
}
}
}
if(!ocmEventDate)
{