Fix meilisearch tests and jobs for oban
This commit is contained in:
parent
2bc21c6f18
commit
d89dc5518b
2 changed files with 30 additions and 9 deletions
|
|
@ -9,6 +9,8 @@ defmodule Pleroma.Workers.SearchIndexingWorker do
|
|||
search_module = Pleroma.Config.get([Pleroma.Search, :module])
|
||||
|
||||
search_module.add_to_index(activity)
|
||||
|
||||
:ok
|
||||
end
|
||||
|
||||
def perform(%Job{args: %{"op" => "remove_from_index", "object" => object_id}}) do
|
||||
|
|
@ -17,5 +19,7 @@ defmodule Pleroma.Workers.SearchIndexingWorker do
|
|||
search_module = Pleroma.Config.get([Pleroma.Search, :module])
|
||||
|
||||
search_module.remove_from_index(object)
|
||||
|
||||
:ok
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue