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

@@ -78,7 +78,9 @@ export class InMemorySeasonRepository implements ISeasonRepository {
async listActiveByLeague(leagueId: string): Promise<Season[]> {
this.logger.debug(`[InMemorySeasonRepository] Listing active seasons by league ID: ${leagueId}`);
const activeSeasons = Array.from(this.seasons.values()).filter(season => season.leagueId === leagueId && season.status === 'active');
const activeSeasons = Array.from(this.seasons.values()).filter(
season => season.leagueId === leagueId && season.status.isActive(),
);
return Promise.resolve(activeSeasons);
}
}