mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix(pg_trgm): use <% instead of %
This commit is contained in:
parent
ee68fbad48
commit
148e714863
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue