0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

fix(server): link live photos (#15612)

* fix(server): link live photos

* chore: sql

* formatting
This commit is contained in:
Alex 2025-01-24 11:38:59 -06:00 committed by GitHub
parent 61bc24d7ea
commit ec7ab209f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -430,9 +430,9 @@ export class AssetRepository implements IAssetRepository {
findLivePhotoMatch(options: LivePhotoSearchOptions): Promise<AssetEntity | undefined> {
const { ownerId, otherAssetId, livePhotoCID, type } = options;
return this.db
.selectFrom('assets')
.select('assets.id')
.innerJoin('exif', 'assets.id', 'exif.assetId')
.where('id', '!=', asUuid(otherAssetId))
.where('ownerId', '=', asUuid(ownerId))