diff options
author | Lain Soykaf <lain@lain.com> | 2023-11-12 16:43:50 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-11-12 16:43:50 +0400 |
commit | 59018d73c366d9297efe83d290c717d1a3e4756a (patch) | |
tree | 2d310d26f8763279f7f9fe854dd4c444d1d7f676 /lib | |
parent | a1a25029da74949a79c73d400b6f2bc0bf1dc01a (diff) | |
download | pleroma-59018d73c366d9297efe83d290c717d1a3e4756a.tar.gz pleroma-59018d73c366d9297efe83d290c717d1a3e4756a.zip |
B Meilisearch: Update to current API responses.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/search/meilisearch.ex | 5 |
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 |