Skip to content

Commit

Permalink
replace System.fetch_env!/1 with System.get_env/1 #67 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jun 14, 2023
1 parent 6791bf3 commit 82b55fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/app_web/live/imgup_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ defmodule AppWeb.ImgupLive do
key = Cid.cid("#{DateTime.utc_now() |> DateTime.to_iso8601()}_#{entry.client_name}")

config = %{
region: System.fetch_env!("AWS_REGION"),
access_key_id: System.fetch_env!("AWS_ACCESS_KEY_ID"),
secret_access_key: System.fetch_env!("AWS_SECRET_ACCESS_KEY")
region: System.get_env("AWS_REGION"),
access_key_id: System.get_env("AWS_ACCESS_KEY_ID"),
secret_access_key: System.get_env("AWS_SECRET_ACCESS_KEY")
}

{:ok, fields} =
Expand Down

0 comments on commit 82b55fd

Please sign in to comment.