Skip to content

Commit

Permalink
hotfix: search filters should be list
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 29, 2024
1 parent 5bab7e4 commit a716ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/canary/index/trieve/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ defmodule Canary.Index.Trieve.Actual do

filters =
if is_nil(source_ids) do
%{must: [filter_for_tags(tags)] |> Enum.reject(&is_nil/1)}
[%{must: [filter_for_tags(tags)] |> Enum.reject(&is_nil/1)}]
else
source_ids
|> Enum.map(fn id ->
Expand Down

0 comments on commit a716ef6

Please sign in to comment.