Remove WorkerHelper

This commit is contained in:
Mark Felder 2024-06-28 11:47:31 -04:00
commit 52e9bec156
41 changed files with 200 additions and 211 deletions

View file

@ -28,6 +28,6 @@ defmodule Pleroma.Web.Push do
@spec send(Pleroma.Notification.t()) ::
{:ok, Oban.Job.t()} | {:error, Oban.Job.changeset() | term()}
def send(notification) do
WebPusherWorker.enqueue("web_push", %{"notification_id" => notification.id})
WebPusherWorker.new(%{"op" => "web_push", "notification_id" => notification.id})
end
end