fix(pg_trgm): use <% instead of %

This commit is contained in:
P. Reis 2024-09-19 10:07:04 -03:00
parent ee68fbad48
commit 148e714863

View file

@ -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);