diff --git a/server/apps/microservices/src/processors/metadata-extraction.processor.ts b/server/apps/microservices/src/processors/metadata-extraction.processor.ts index a5a7f0d3bc..fb907538b8 100644 --- a/server/apps/microservices/src/processors/metadata-extraction.processor.ts +++ b/server/apps/microservices/src/processors/metadata-extraction.processor.ts @@ -183,8 +183,8 @@ export class MetadataExtractionProcessor { if (newExif.livePhotoCID && !asset.livePhotoVideoId) { const motionAsset = await this.assetRepository.findLivePhotoMatch( newExif.livePhotoCID, - AssetType.VIDEO, asset.id, + AssetType.VIDEO, ); if (motionAsset) { await this.assetRepository.save({ id: asset.id, livePhotoVideoId: motionAsset.id }); @@ -294,8 +294,8 @@ export class MetadataExtractionProcessor { if (newExif.livePhotoCID) { const photoAsset = await this.assetRepository.findLivePhotoMatch( newExif.livePhotoCID, - AssetType.IMAGE, asset.id, + AssetType.IMAGE, ); if (photoAsset) { await this.assetRepository.save({ id: photoAsset.id, livePhotoVideoId: asset.id }); diff --git a/server/libs/domain/src/asset/asset.repository.ts b/server/libs/domain/src/asset/asset.repository.ts index 67ae308a44..4e5600b8d8 100644 --- a/server/libs/domain/src/asset/asset.repository.ts +++ b/server/libs/domain/src/asset/asset.repository.ts @@ -6,5 +6,5 @@ export interface IAssetRepository { deleteAll(ownerId: string): Promise; getAll(): Promise; save(asset: Partial): Promise; - findLivePhotoMatch(livePhotoCID: string, type: AssetType, otherAssetId: string): Promise; + findLivePhotoMatch(livePhotoCID: string, otherAssetId: string, type: AssetType): Promise; }