From db88bf30d50a546114d3ee22a3c67b53975257d4 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sat, 8 Jun 2024 19:20:38 -0400 Subject: [PATCH] Add spec for send/1 --- lib/pleroma/web/push.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pleroma/web/push.ex b/lib/pleroma/web/push.ex index af895467b..d4693f63e 100644 --- a/lib/pleroma/web/push.ex +++ b/lib/pleroma/web/push.ex @@ -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