mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: allow edit to empty name (#3322)
This commit is contained in:
parent
8045fd3f14
commit
632971a2ac
2 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue