1
0

fix(typesense): correctly incorporate existing filter when it is empty

This commit is contained in:
kolaente 2024-06-04 18:21:10 +02:00
parent 37c89ea826
commit 5fc4ec48b7
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -510,9 +510,10 @@ func (t *typesenseTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task,
return nil, 0, err
}
filterBy := []string{
"project_id: [" + strings.Join(projectIDStrings, ", ") + "]",
"(" + filter + ")",
filterBy := []string{"project_id: [" + strings.Join(projectIDStrings, ", ") + "]"}
if filter != "" {
filterBy = append(filterBy, "("+filter+")")
}
var projectViewIDForPosition int64