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