mirror of
https://github.com/immich-app/immich.git
synced 2025-06-02 13:14:54 -04:00
fix: live photo hiding (#17548)
This commit is contained in:
parent
3bec8dc337
commit
5548eb0dad
@ -646,7 +646,7 @@ export class AssetRepository {
|
|||||||
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')
|
.select(['assets.id', 'assets.ownerId'])
|
||||||
.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…
x
Reference in New Issue
Block a user