Skip to content

Commit

Permalink
fix(server): link live photos (#15612)
Browse files Browse the repository at this point in the history
* fix(server): link live photos

* chore: sql

* formatting
  • Loading branch information
alextran1502 authored Jan 24, 2025
1 parent 61bc24d commit ec7ab20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/repositories/asset.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ec7ab20

Please sign in to comment.