Skip to content

Commit 335dcdf

Browse files
committed
fix typespecs
1 parent 75042bd commit 335dcdf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/algora_web/live/admin/campaign_live.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ defmodule AlgoraWeb.Admin.CampaignLive do
212212
end
213213
end
214214

215-
@spec enqueue_emails(recipients :: list(), subject :: String.t(), template :: String.t()) :: :ok
215+
@spec enqueue_emails(recipients :: list(), subject :: String.t(), template :: String.t()) ::
216+
{:ok, term} | {:error, term}
216217
def enqueue_emails(recipients, subject, template) do
217218
Repo.transact(fn _ ->
218219
recipients
@@ -236,7 +237,8 @@ defmodule AlgoraWeb.Admin.CampaignLive do
236237
end)
237238
end
238239

239-
@spec deliver_email(recipient :: map(), subject :: String.t(), template_params :: Keyword.t()) :: :ok
240+
@spec deliver_email(recipient :: map(), subject :: String.t(), template_params :: Keyword.t()) ::
241+
{:ok, term} | {:error, term}
240242
def deliver_email(recipient, subject, template_params) do
241243
case :get
242244
|> Finch.build("https://algora.io/og/go/#{recipient["repo_owner"]}/#{recipient["repo_name"]}")

0 commit comments

Comments
 (0)