add email typespec
This commit is contained in:
parent
1f789c0a8d
commit
e200cf1b84
@ -24,7 +24,7 @@ defmodule Cannery.Email do
|
|||||||
new() |> to(email) |> from({name, from}) |> subject(subject)
|
new() |> to(email) |> from({name, from}) |> subject(subject)
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec generate_email(String.t(), User.t(), attrs :: map()) :: t()
|
@spec generate_email(key :: String.t(), User.t(), attrs :: map()) :: t()
|
||||||
def generate_email("welcome", user, %{"url" => url}) do
|
def generate_email("welcome", user, %{"url" => url}) do
|
||||||
user
|
user
|
||||||
|> base_email(dgettext("emails", "Confirm your %{name} account", name: "Cannery"))
|
|> base_email(dgettext("emails", "Confirm your %{name} account", name: "Cannery"))
|
||||||
|
Loading…
Reference in New Issue
Block a user