This commit is contained in:
2025-12-17 12:05:00 +01:00
parent 4d890863d3
commit 07dfefebe4
65 changed files with 6034 additions and 778 deletions

View File

@@ -5,12 +5,8 @@ import { Logger } from '@core/shared/application';
export class InMemorySeasonRepository implements ISeasonRepository {
private seasons: Map<string, Season> = new Map(); // Key: seasonId
constructor(private readonly logger: Logger, initialSeasons: Season[] = []) {
constructor(private readonly logger: Logger) {
this.logger.info('InMemorySeasonRepository initialized.');
for (const season of initialSeasons) {
this.seasons.set(season.id, season);
this.logger.debug(`Seeded season: ${season.id} (${season.name}).`);
}
}
async findById(id: string): Promise<Season | null> {