Fix false error in meilisearch index #221

Merged
floatingghost merged 4 commits from meilisearch-false-error into develop 2022-09-20 10:36:21 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 7cfb2afeec - Show all commits

View file

@ -153,7 +153,7 @@ defmodule Pleroma.Search.Meilisearch do
) )
with {:ok, res} <- result, with {:ok, res} <- result,
true <- Map.has_key?(res, "indexUid") do true <- Map.has_key?(res, "taskUid") do
# Do nothing # Do nothing
else else
_ -> _ ->

View file

@ -47,7 +47,7 @@ defmodule Pleroma.Search.MeilisearchTest do
Jason.decode!(body) Jason.decode!(body)
) )
json(%{updateId: 1}) json(%{taskUid: 1})
end) end)
{:ok, activity} = {:ok, activity} =
@ -100,11 +100,11 @@ defmodule Pleroma.Search.MeilisearchTest do
Jason.decode!(body) Jason.decode!(body)
) )
json(%{updateId: 1}) json(%{taskUid: 1})
%{method: :delete, url: "http://127.0.0.1:7700/indexes/objects/documents/" <> id} -> %{method: :delete, url: "http://127.0.0.1:7700/indexes/objects/documents/" <> id} ->
assert String.length(id) > 1 assert String.length(id) > 1
json(%{updateId: 2}) json(%{taskUid: 2})
end) end)
{:ok, activity} = {:ok, activity} =