fix issues in core
This commit is contained in:
@@ -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 }>>();
|
||||
|
||||
Reference in New Issue
Block a user