do: "code",
else: "errorCode"
- # Filter out the already indexed documents. This is true when the document does not exist
+ # Filter out the already indexed documents.
+ # This is true when the document does not exist
result[error_code_key] == "document_not_found"
else
true
import Pleroma.Activity.Search
import Ecto.Query
- defp meili_headers() do
+ defp meili_headers do
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
[{"Content-Type", "application/json"}] ++
import Tesla.Mock
import Mock
- alias Pleroma.Web.CommonAPI
alias Pleroma.Search.Meilisearch
+ alias Pleroma.Web.CommonAPI
setup_all do
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)