mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(server): avoid upserting empty metadata array (#25143)
This commit is contained in:
@@ -433,7 +433,7 @@ export class AssetMediaService extends BaseService {
|
|||||||
originalFileName: dto.filename || file.originalName,
|
originalFileName: dto.filename || file.originalName,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (dto.metadata) {
|
if (dto.metadata?.length) {
|
||||||
await this.assetRepository.upsertMetadata(asset.id, dto.metadata);
|
await this.assetRepository.upsertMetadata(asset.id, dto.metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user