Fix depreciated calls of fetch_env!/2 and get_env/2

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-09-21 08:53:50 +02:00
parent 655ae4f9a1
commit bbbaa81a6e
10 changed files with 45 additions and 27 deletions

View File

@@ -212,7 +212,7 @@ defmodule Mobilizon.Web.Router do
get("/:sig/:url/:filename", MediaProxyController, :remote)
end
if Application.fetch_env!(:mobilizon, :env) in [:dev, :e2e] do
if Application.compile_env(:mobilizon, :env) in [:dev, :e2e] do
# If using Phoenix
forward("/sent_emails", Plug.Swoosh.MailboxPreview)
end