website refactor

This commit is contained in:
2026-01-16 15:20:25 +01:00
parent 7e02fc3ea5
commit 37b1aa626c
325 changed files with 2167 additions and 2782 deletions

View File

@@ -1,19 +1,10 @@
import type { Logger } from '@core/shared/application';
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
import { Race } from '../../domain/entities/Race';
import type { Season } from '../../domain/entities/season/Season';
import type { RaceRepository } from '../../domain/repositories/RaceRepository';
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
export type CreateLeagueSeasonScheduleRaceInput = {
leagueId: string;
seasonId: string;
track: string;
car: string;
scheduledAt: Date;
};
export type CreateLeagueSeasonScheduleRaceResult = {
raceId: string;
@@ -96,9 +87,7 @@ export class CreateLeagueSeasonScheduleRaceUseCase {
}
}
private isWithinSeasonWindow(_season: Season, _scheduledAt: Date): boolean {
// Implementation would check if scheduledAt is within season's schedule window
// For now, return true as a placeholder
return true;
private isWithinSeasonWindow(season: Season, scheduledAt: Date): boolean {
return scheduledAt >= season.startDate && scheduledAt <= season.endDate;
}
}