Skip to content

Commit 0424e68

Browse files
committed
Fix empty system from email in prod
1 parent 905d6a3 commit 0424e68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ config :keila, KeilaWeb.Gettext,
108108
default_locale: "en",
109109
locales: ["de", "en"]
110110

111-
config(:keila, Keila.Mailer, from_email: "keila@localhost")
111+
config(:keila, Keila.Auth.Emails, from_email: "keila@localhost")
112112

113113
# Import environment specific config. This must remain at the bottom
114114
# of this file so it overrides the configuration defined above.

lib/keila/auth/emails.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ defmodule Keila.Auth.Emails do
109109
end
110110

111111
defp system_from_email() do
112-
Application.get_env(:keila, Keila.Mailer) |> Keyword.fetch!(:from_email)
112+
Application.get_env(:keila, __MODULE__) |> Keyword.fetch!(:from_email)
113113
end
114114
end

0 commit comments

Comments
 (0)