From e200cf1b846256de1d8290c79dfa3c72ebdc2391 Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 16 Feb 2022 20:22:04 -0500 Subject: [PATCH] add email typespec --- lib/cannery/accounts/email.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cannery/accounts/email.ex b/lib/cannery/accounts/email.ex index 299b90a..a8904a2 100644 --- a/lib/cannery/accounts/email.ex +++ b/lib/cannery/accounts/email.ex @@ -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"))