website refactor
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
import type { ResultRepository } from '../../domain/repositories/ResultRepository';
|
||||
import type { StandingRepository } from '../../domain/repositories/StandingRepository';
|
||||
import type { DriverStatsRepository } from '../../domain/repositories/DriverStatsRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export interface DriverStats {
|
||||
@@ -29,11 +30,12 @@ export class DriverStatsUseCase {
|
||||
constructor(
|
||||
_resultRepository: ResultRepository,
|
||||
_standingRepository: StandingRepository,
|
||||
private readonly _driverStatsRepository: DriverStatsRepository,
|
||||
private readonly _logger: Logger,
|
||||
) {}
|
||||
|
||||
async getDriverStats(driverId: string): Promise<DriverStats | null> {
|
||||
this._logger.debug(`Getting stats for driver ${driverId}`);
|
||||
return null;
|
||||
return this._driverStatsRepository.getDriverStats(driverId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user