Skip to content

Commit

Permalink
fix(server): duplicate detection (#15727)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Jan 27, 2025
1 parent e5794e6 commit 0fe6229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/entities/asset.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function withExifInner<O>(qb: SelectQueryBuilder<DB, 'assets', O>) {
export function withSmartSearch<O>(qb: SelectQueryBuilder<DB, 'assets', O>) {
return qb
.leftJoin('smart_search', 'assets.id', 'smart_search.assetId')
.select(sql<number[]>`smart_search.embedding`.as('embedding'));
.select((eb) => eb.fn.toJson(eb.table('smart_search')).as('smartSearch'));
}

export function withFaces(eb: ExpressionBuilder<DB, 'assets'>) {
Expand Down

0 comments on commit 0fe6229

Please sign in to comment.