code quality
This commit is contained in:
@@ -180,6 +180,7 @@ export class CompleteRaceUseCase {
|
||||
startPosition,
|
||||
fastestLap,
|
||||
incidents,
|
||||
points: 0,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
);
|
||||
}),
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
);
|
||||
}),
|
||||
|
||||
@@ -62,6 +62,7 @@ export class RaceResultGenerator {
|
||||
startPosition,
|
||||
fastestLap,
|
||||
incidents,
|
||||
points: 0,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user