fix issues in core

This commit is contained in:
2025-12-23 11:25:08 +01:00
parent 1efd971032
commit 2854ae3c5c
113 changed files with 1142 additions and 458 deletions

View File

@@ -14,8 +14,8 @@ export type DriverSeasonStats = {
driverId: string;
position: number;
driverName: string;
teamId?: string;
teamName?: string;
teamId: string | undefined;
teamName: string | undefined;
totalPoints: number;
basePoints: number;
penaltyPoints: number;
@@ -102,8 +102,8 @@ export class GetLeagueDriverSeasonStatsUseCase {
const driverRatings = new Map<string, { rating: number | null; ratingChange: number | null }>();
for (const standing of standings) {
const driverId = String(standing.driverId);
const ratingInfo = this.driverRatingPort.getRating(driverId);
driverRatings.set(driverId, ratingInfo);
const rating = await this.driverRatingPort.getDriverRating(driverId);
driverRatings.set(driverId, { rating, ratingChange: null });
}
const driverResults = new Map<string, Array<{ position: number }>>();