code quality

This commit is contained in:
2026-01-26 01:36:22 +01:00
parent f06a00da1b
commit 49cc91e046
23 changed files with 68 additions and 54 deletions

View File

@@ -180,6 +180,7 @@ export class CompleteRaceUseCase {
startPosition,
fastestLap,
incidents,
points: 0,
}),
);
}

View File

@@ -16,6 +16,7 @@ export type ImportRaceResultDTO = {
fastestLap: number;
incidents: number;
startPosition: number;
points: number;
};
export type ImportRaceResultsApiInput = {
@@ -145,6 +146,7 @@ export class ImportRaceResultsApiUseCase {
fastestLap: dto.fastestLap,
incidents: dto.incidents,
startPosition: dto.startPosition,
points: dto.points,
}),
);
}),

View File

@@ -15,6 +15,7 @@ export type ImportRaceResultRow = {
fastestLap: number;
incidents: number;
startPosition: number;
points: number;
};
export type ImportRaceResultsInput = {
@@ -127,6 +128,7 @@ export class ImportRaceResultsUseCase {
fastestLap: row.fastestLap,
incidents: row.incidents,
startPosition: row.startPosition,
points: row.points,
}),
);
}),

View File

@@ -62,6 +62,7 @@ export class RaceResultGenerator {
startPosition,
fastestLap,
incidents,
points: 0,
})
);
}