seed data

This commit is contained in:
2025-12-30 18:33:15 +01:00
parent 83371ea839
commit 92226800df
306 changed files with 1753 additions and 501 deletions

View File

@@ -18,6 +18,11 @@ export class DashboardDriverSummaryDTO {
@IsString()
avatarUrl!: string;
@ApiProperty({ nullable: true })
@IsOptional()
@IsString()
category?: string | null;
@ApiProperty({ nullable: true })
@IsOptional()
@IsNumber()

View File

@@ -20,6 +20,11 @@ export class DashboardDriverSummaryDTO {
@IsString()
avatarUrl?: string | null;
@ApiProperty({ nullable: true })
@IsOptional()
@IsString()
category?: string | null;
@ApiProperty({ nullable: true })
@IsOptional()
@IsNumber()

View File

@@ -23,6 +23,7 @@ export class DashboardOverviewPresenter implements UseCaseOutputPort<DashboardOv
name: String(data.currentDriver.driver.name),
country: String(data.currentDriver.driver.country),
avatarUrl: data.currentDriver.avatarUrl,
category: data.currentDriver.driver.category ?? null,
rating: data.currentDriver.rating,
globalRank: data.currentDriver.globalRank,
totalRaces: data.currentDriver.totalRaces,