fix(typesense): correctly incorporate existing filter when it is empty
This commit is contained in:
parent
37c89ea826
commit
5fc4ec48b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user