Fix config option in test

pull/1119/head^2
Uku Taht 6 years ago
parent 18ddf9dd9d
commit 0ef0fd2048

@ -7,3 +7,4 @@ MAILER_ADAPTER=Bamboo.LocalAdapter
LOG_LEVEL=debug
SELFHOST=false
DISABLE_CRON=true
ADMIN_USER_IDS=wat,1,23

@ -52,7 +52,12 @@ admin_email = get_var_from_path_or_env(config_dir, "ADMIN_USER_EMAIL")
admin_user_ids =
get_var_from_path_or_env(config_dir, "ADMIN_USER_IDS", "")
|> String.split(",")
|> Enum.map(fn id -> Integer.parse(id) |> elem(0) end)
|> Enum.map(fn id -> Integer.parse(id) end)
|> Enum.map(fn
{int, ""} -> int
_ -> nil
end)
|> Enum.filter(& &1)
admin_pwd = get_var_from_path_or_env(config_dir, "ADMIN_USER_PWD")
env = get_var_from_path_or_env(config_dir, "ENVIRONMENT", "prod")

Loading…
Cancel
Save