Fix the Federator perform/2 Oban callback

This commit is contained in:
Mark Felder 2023-12-28 22:51:47 -05:00
parent 013f7c4f8f
commit 08ba9a15b2
1 changed files with 2 additions and 4 deletions

View File

@ -68,10 +68,8 @@ defp publish_priority(_), do: 0
# Job Worker Callbacks # Job Worker Callbacks
@spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()} @spec perform(atom(), any()) :: {:ok, any()} | {:error, any()}
def perform(:publish_one, module, params) do def perform(:publish_one, params), do: Publisher.publish_one(params)
apply(module, :publish_one, [params])
end
def perform(:publish, activity) do def perform(:publish, activity) do
Logger.debug(fn -> "Running publish for #{activity.data["id"]}" end) Logger.debug(fn -> "Running publish for #{activity.data["id"]}" end)