Fix false error in meilisearch index #221
|
@ -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
|
||||||
_ ->
|
_ ->
|
||||||
|
|
|
@ -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} =
|
||||||
|
|
Loading…
Reference in a new issue