website cleanup
This commit is contained in:
@@ -29,7 +29,12 @@ export class AvatarService {
|
||||
*/
|
||||
async getAvatar(driverId: string): Promise<AvatarViewModel> {
|
||||
const dto = await this.apiClient.getAvatar(driverId);
|
||||
return new AvatarViewModel(dto);
|
||||
// Convert GetAvatarOutputDTO to AvatarDTO format
|
||||
const avatarDto = {
|
||||
driverId: driverId,
|
||||
avatarUrl: dto.avatarUrl
|
||||
};
|
||||
return new AvatarViewModel(avatarDto);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user