summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/search/meilisearch.ex5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pleroma/search/meilisearch.ex b/lib/pleroma/search/meilisearch.ex
index eed9fca1c..2bff663e8 100644
--- a/lib/pleroma/search/meilisearch.ex
+++ b/lib/pleroma/search/meilisearch.ex
@@ -76,7 +76,7 @@ defmodule Pleroma.Search.Meilisearch do
) do
:ok
else
- _ -> :error
+ _ -> {:error, "Could not remove from index"}
end
end
@@ -159,8 +159,7 @@ defmodule Pleroma.Search.Meilisearch do
[maybe_search_data]
)
- with {:ok, res} <- result,
- true <- Map.has_key?(res, "updateId") do
+ with {:ok, %{"status" => "enqueued"}} <- result do
# Added successfully
:ok
else