diff --git a/server/src/repositories/asset.repository.ts b/server/src/repositories/asset.repository.ts index e2765d0446..cdca1fa9c8 100644 --- a/server/src/repositories/asset.repository.ts +++ b/server/src/repositories/asset.repository.ts @@ -646,7 +646,7 @@ export class AssetRepository { const { ownerId, otherAssetId, livePhotoCID, type } = options; return this.db .selectFrom('assets') - .select('assets.id') + .select(['assets.id', 'assets.ownerId']) .innerJoin('exif', 'assets.id', 'exif.assetId') .where('id', '!=', asUuid(otherAssetId)) .where('ownerId', '=', asUuid(ownerId))