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

@@ -77,7 +77,7 @@ export class GetAllLeaguesWithCapacityAndScoringUseCase {
const seasons = await this.seasonRepository.findByLeagueId(league.id.toString());
const activeSeason =
seasons && seasons.length > 0
? seasons.find((s) => s.status === 'active') ?? seasons[0]
? seasons.find((s) => s.status.isActive()) ?? seasons[0]
: undefined;
let scoringConfig: LeagueScoringConfig | undefined;