wip
This commit is contained in:
@@ -24,8 +24,8 @@ export class UpdateDriverProfileUseCase {
|
||||
}
|
||||
|
||||
const updated = existing.update({
|
||||
bio: bio ?? existing.bio,
|
||||
country: country ?? existing.country,
|
||||
...(bio !== undefined ? { bio } : {}),
|
||||
...(country !== undefined ? { country } : {}),
|
||||
});
|
||||
|
||||
const persisted = await this.driverRepository.update(updated);
|
||||
|
||||
Reference in New Issue
Block a user