forked from AkkomaGang/akkoma
Style fixes
This commit is contained in:
parent
5dd908552c
commit
0769f06bd1
3 changed files with 4 additions and 3 deletions
|
@ -82,7 +82,8 @@ def run(["index" | args]) do
|
||||||
do: "code",
|
do: "code",
|
||||||
else: "errorCode"
|
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"
|
result[error_code_key] == "document_not_found"
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
|
|
|
@ -7,7 +7,7 @@ defmodule Pleroma.Search.Meilisearch do
|
||||||
import Pleroma.Activity.Search
|
import Pleroma.Activity.Search
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
defp meili_headers() do
|
defp meili_headers do
|
||||||
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
|
private_key = Pleroma.Config.get([Pleroma.Search.Meilisearch, :private_key])
|
||||||
|
|
||||||
[{"Content-Type", "application/json"}] ++
|
[{"Content-Type", "application/json"}] ++
|
||||||
|
|
|
@ -11,8 +11,8 @@ defmodule Pleroma.Search.MeilisearchTest do
|
||||||
import Tesla.Mock
|
import Tesla.Mock
|
||||||
import Mock
|
import Mock
|
||||||
|
|
||||||
alias Pleroma.Web.CommonAPI
|
|
||||||
alias Pleroma.Search.Meilisearch
|
alias Pleroma.Search.Meilisearch
|
||||||
|
alias Pleroma.Web.CommonAPI
|
||||||
|
|
||||||
setup_all do
|
setup_all do
|
||||||
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
|
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
|
||||||
|
|
Loading…
Reference in a new issue