This commit is contained in:
2025-12-21 22:35:38 +01:00
parent 3c64f328e2
commit 9bd2e630e6
38 changed files with 736 additions and 684 deletions

View File

@@ -11,9 +11,7 @@ export type UpdateDriverProfileInput = {
country?: string;
};
export type UpdateDriverProfileResult = {
driverId: string;
};
export type UpdateDriverProfileResult = Driver;
export type UpdateDriverProfileErrorCode =
| 'DRIVER_NOT_FOUND'
@@ -64,11 +62,7 @@ export class UpdateDriverProfileUseCase implements UseCase<UpdateDriverProfileIn
await this.driverRepository.update(updated);
const result: UpdateDriverProfileResult = {
driverId: updated.id,
};
this.output.present(result);
this.output.present(updated);
return Result.ok(undefined);
} catch (error) {