add email typespec

This commit is contained in:
shibao 2022-02-16 20:22:04 -05:00
parent 1f789c0a8d
commit e200cf1b84
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ defmodule Cannery.Email do
new() |> to(email) |> from({name, from}) |> subject(subject)
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
user
|> base_email(dgettext("emails", "Confirm your %{name} account", name: "Cannery"))