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