harden media

This commit is contained in:
2025-12-31 15:39:28 +01:00
parent 92226800df
commit 8260bf7baf
413 changed files with 8361 additions and 1544 deletions

View File

@@ -41,7 +41,7 @@ export class DriverService {
if (!dto) {
return null;
}
return new DriverViewModel(dto);
return new DriverViewModel({ ...dto, avatarUrl: (dto as any).avatarUrl ?? null });
}
/**
@@ -55,7 +55,7 @@ export class DriverService {
id: dto.currentDriver.id,
name: dto.currentDriver.name,
country: dto.currentDriver.country,
avatarUrl: dto.currentDriver.avatarUrl,
avatarUrl: dto.currentDriver.avatarUrl || '',
iracingId: dto.currentDriver.iracingId ?? null,
joinedAt: dto.currentDriver.joinedAt,
rating: dto.currentDriver.rating ?? null,
@@ -107,7 +107,7 @@ export class DriverService {
id: f.id,
name: f.name,
country: f.country,
avatarUrl: f.avatarUrl,
avatarUrl: f.avatarUrl || '',
})),
},
extendedProfile: dto.extendedProfile