Skip to content

Commit

Permalink
Fix lookup for email integration enablement env var
Browse files Browse the repository at this point in the history
Because of wrong list of arguments to function, it was impossible
to disable email integration.
  • Loading branch information
p2004a committed May 28, 2024
1 parent 3e6541e commit fd15600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if config_env() == :prod do
issuer: Teiserver.ConfigHelpers.get_env("TEI_GUARDIAN_ISSUER", "teiserver"),
secret_key: Teiserver.ConfigHelpers.get_env("TEI_GUARDIAN_SECRET_KEY")

if Teiserver.ConfigHelpers.get_env("TEI_ENABLE_EMAIL_INTEGRATION", :bool) do
if Teiserver.ConfigHelpers.get_env("TEI_ENABLE_EMAIL_INTEGRATION", true, :bool) do
config :teiserver, Teiserver.Mailer,
adapter: Bamboo.SMTPAdapter,
contact_address:
Expand Down

0 comments on commit fd15600

Please sign in to comment.