Skip to content

Commit

Permalink
change: System.get_envs to Application.compile_envs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Nov 4, 2023
1 parent ca21975 commit 523adba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/safira/email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ defmodule Safira.Email do
"""
# use Bamboo.Phoenix, view: Safira.FeedbackView
import Bamboo.Email

@from_email Application.compile_env!(:safira, :from_email)
def send_reset_email(to_email, token) do
new_email()
|> to(to_email)
|> from(System.get_env("FROM_EMAIL"))
|> from(@from_email)
|> subject("[SEI '23] Reset password instructions")
|> html_body(build_reset_password_email_text(token))
|> Safira.Mailer.deliver_now()
Expand Down
2 changes: 1 addition & 1 deletion lib/safira/web/uploaders/cv.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Safira.CV do

@versions [:original]
@acl :public_read
@max_file_size String.to_integer(System.get_env("MAX_CV_FILE_SIZE") || "8000000")
@max_file_size Application.compile_env!(:safira, :max_cv_file_size)

def validate({file, _}) do
size = file_size(file)
Expand Down

0 comments on commit 523adba

Please sign in to comment.