mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
Add spec for send/1
This commit is contained in:
parent
07cb89823f
commit
db88bf30d5
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ defmodule Pleroma.Web.Push do
|
|||
|
||||
def enabled, do: match?([subject: _, public_key: _, private_key: _], vapid_config())
|
||||
|
||||
@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})
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue