|
@@ -50,7 +50,7 @@ export class PersonService {
|
|
|
async update(authUser: AuthUserDto, id: string, dto: PersonUpdateDto): Promise<PersonResponseDto> {
|
|
|
let person = await this.findOrFail(authUser, id);
|
|
|
|
|
|
- if (dto.name) {
|
|
|
+ if (dto.name !== undefined) {
|
|
|
person = await this.repository.update({ id, name: dto.name });
|
|
|
const assets = await this.repository.getAssets(authUser.id, id);
|
|
|
const ids = assets.map((asset) => asset.id);
|