mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(server): link live photos (#15612)
* fix(server): link live photos * chore: sql * formatting
This commit is contained in:
parent
61bc24d7ea
commit
ec7ab209f3
1 changed files with 1 additions and 1 deletions
|
|
@ -430,9 +430,9 @@ export class AssetRepository implements IAssetRepository {
|
||||||
|
|
||||||
findLivePhotoMatch(options: LivePhotoSearchOptions): Promise<AssetEntity | undefined> {
|
findLivePhotoMatch(options: LivePhotoSearchOptions): Promise<AssetEntity | undefined> {
|
||||||
const { ownerId, otherAssetId, livePhotoCID, type } = options;
|
const { ownerId, otherAssetId, livePhotoCID, type } = options;
|
||||||
|
|
||||||
return this.db
|
return this.db
|
||||||
.selectFrom('assets')
|
.selectFrom('assets')
|
||||||
|
.select('assets.id')
|
||||||
.innerJoin('exif', 'assets.id', 'exif.assetId')
|
.innerJoin('exif', 'assets.id', 'exif.assetId')
|
||||||
.where('id', '!=', asUuid(otherAssetId))
|
.where('id', '!=', asUuid(otherAssetId))
|
||||||
.where('ownerId', '=', asUuid(ownerId))
|
.where('ownerId', '=', asUuid(ownerId))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue