Merge branch 'workerhelper-fix' into 'develop'

Fix WebPush notifications not generating jobs

See merge request pleroma/pleroma!4210
This commit is contained in:
feld 2024-08-07 17:37:44 +00:00
commit 45611ed325
3 changed files with 7 additions and 9 deletions

View file

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