mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[backend] Postgres FTS query should be trimmed
This commit is contained in:
parent
c72eb36d66
commit
5b672e20af
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const filters = {
|
|||
//TODO: new filters are missing from the filter dropdown, and said dropdown should always show (remove the searchFilters meta prop), also we should fix the null bug
|
||||
|
||||
export function generateFtsQuery(query: SelectQueryBuilder<any>, q: string): void {
|
||||
const components = q.split(" ");
|
||||
const components = q.trim().split(" ");
|
||||
const terms: string[] = [];
|
||||
let finalTerms: string[] = [];
|
||||
let counter = 0;
|
||||
|
|
Loading…
Reference in a new issue