refactor
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user