mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-25 09:15:56 +00:00
fix(server): avoid upserting empty metadata array (#25143)
This commit is contained in:
parent
85b0b97ef2
commit
5d1e486478
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ export class AssetMediaService extends BaseService {
|
|||
originalFileName: dto.filename || file.originalName,
|
||||
});
|
||||
|
||||
if (dto.metadata) {
|
||||
if (dto.metadata?.length) {
|
||||
await this.assetRepository.upsertMetadata(asset.id, dto.metadata);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue