mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +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,
|
||||
});
|
||||
|
||||
if (dto.metadata) {
|
||||
if (dto.metadata?.length) {
|
||||
await this.assetRepository.upsertMetadata(asset.id, dto.metadata);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user