mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-17 12:24:24 +01:00
fix(pg_trgm): use <% instead of %
This commit is contained in:
@@ -16,7 +16,7 @@ export async function getPubkeysBySearch(
|
||||
'search',
|
||||
eb.fn('word_similarity', [sql`${q}`, 'search']).as('sml'),
|
||||
])
|
||||
.where(() => sql`${q} % search`)
|
||||
.where(() => sql`${q} <% search`)
|
||||
.orderBy(['sml desc', 'search'])
|
||||
.limit(limit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user