mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03:00
fix(server): do not match live photos across libraries (#11952)
This commit is contained in:
@@ -363,12 +363,13 @@ export class AssetRepository implements IAssetRepository {
|
||||
}
|
||||
|
||||
findLivePhotoMatch(options: LivePhotoSearchOptions): Promise<AssetEntity | null> {
|
||||
const { ownerId, otherAssetId, livePhotoCID, type } = options;
|
||||
const { ownerId, libraryId, otherAssetId, livePhotoCID, type } = options;
|
||||
|
||||
return this.repository.findOne({
|
||||
where: {
|
||||
id: Not(otherAssetId),
|
||||
ownerId,
|
||||
libraryId: libraryId || IsNull(),
|
||||
type,
|
||||
exifInfo: {
|
||||
livePhotoCID,
|
||||
|
||||
Reference in New Issue
Block a user