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

@@ -30,7 +30,7 @@ defmodule Mobilizon.Service.Activity.Utils do
@spec maybe_inserted_at :: map()
def maybe_inserted_at do
if Application.fetch_env!(:mobilizon, :env) == :test do
if Application.compile_env(:mobilizon, :env) == :test do
%{}
else
%{"inserted_at" => DateTime.utc_now()}