mobilizon/lib/service/workers/clean_old_activity_worker.ex

14 lines
284 B
Elixir
Raw Normal View History

defmodule Mobilizon.Service.Workers.CleanOldActivityWorker do
@moduledoc """
Worker to clean old activity
"""
use Oban.Worker, queue: "background"
alias Mobilizon.Service.CleanOldActivity
@impl Oban.Worker
def perform(%Job{}) do
CleanOldActivity.clean()
end
end