defmodule RemoteRetroWeb.UserManagement do
  alias RemoteRetro.{User, Mailer, Emails}

  def handle_google_oauth(oauth_info) do
    if Application.get_env(:remote_retro, :env) !== :test do
      IO.inspect oauth_info
    end

    case User.upsert_record_from(oauth_info: oauth_info) do
      {:ok, user, :inserted} ->
        Emails.welcome_email(user) |> Mailer.deliver_now()
        {:ok, user}

      {:ok, user, :updated} ->
        {:ok, user}
    end
  end
end

defmodule RemoteRetroWeb.UserManagement do
  alias RemoteRetro.{User, Mailer, Emails}

  def handle_google_oauth(oauth_info) do
    case User.upsert_record_from(oauth_info: oauth_info) do
      {:ok, user, :inserted} ->
        Emails.welcome_email(user) |> Mailer.deliver_now()
        {:ok, user}

      {:ok, user, :updated} ->
        {:ok, user}
    end
  end
end

Remove temporary production logging used to identify problematic data
Remove temporary production logging used to identify problematic data

stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro