wip league admin tools

This commit is contained in:
2025-12-28 12:04:12 +01:00
parent 5dc8c2399c
commit 6edf12fda8
401 changed files with 15365 additions and 6047 deletions

View File

@@ -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({