wip league admin tools
This commit is contained in:
@@ -249,7 +249,7 @@ export class RacingMembershipFactory {
|
||||
.map(m => `${m.leagueId.toString()}:${m.driverId.toString()}`),
|
||||
);
|
||||
|
||||
const scheduled = races.filter((r) => r.status === 'scheduled');
|
||||
const scheduled = races.filter((r) => r.status.toString() === 'scheduled');
|
||||
|
||||
for (const race of scheduled) {
|
||||
const leagueId = race.leagueId.toString();
|
||||
@@ -311,7 +311,7 @@ export class RacingMembershipFactory {
|
||||
}
|
||||
|
||||
// Keep a tiny curated "happy path" for the demo league as well
|
||||
const upcomingDemoLeague = races.filter((r) => r.status === 'scheduled' && r.leagueId === 'league-5').slice(0, 3);
|
||||
const upcomingDemoLeague = races.filter((r) => r.status.toString() === 'scheduled' && r.leagueId === 'league-5').slice(0, 3);
|
||||
for (const race of upcomingDemoLeague) {
|
||||
registrations.push(
|
||||
RaceRegistration.create({
|
||||
|
||||
Reference in New Issue
Block a user