wip league admin tools
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user