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:
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> {
|
||||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue