B Meilisearch: Update to current API responses.
This commit is contained in:
parent
a1a25029da
commit
59018d73c3
2 changed files with 20 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue