From e01d623e28e0e6d95eed1ac7adc86b9499012de1 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sun, 31 Jan 2021 14:14:29 -0600 Subject: [PATCH] Send email control, and db gemfile --- db/Gemfile | 16 ++++++++++++++++ web/app/controllers/api_users_controller.rb | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/db/Gemfile b/db/Gemfile index 1908dd61f..1d2ca33be 100644 --- a/db/Gemfile +++ b/db/Gemfile @@ -3,4 +3,20 @@ source 'http://rubygems.org' # Assumes you have already cloned pg_migrate_ruby in your workspace # $ cd [workspace] # $ git clone https://github.com/sethcall/pg_migrate_ruby +gem 'did_you_mean', '1.4.0' +gem 'etc', '1.1.0' +gem 'fileutils', '1.4.1' +gem 'delegate', '0.1.0' +gem 'timeout', '0.1.0' +gem 'uri', '0.10.0' +gem 'zlib', '1.1.0' +gem 'logging', '1.7.2' +gem 'stringio', '0.1.0' +gem 'date', '3.0.0' +gem 'ipaddr', '1.2.2' +gem 'openssl', '2.1.2' +gem 'cgi', '0.1.0' +gem 'strscan', '1.0.3' +gem 'forwardable', '1.3.1' + gem 'pg_migrate', '0.1.14', :source => 'http://rubygems.org/' diff --git a/web/app/controllers/api_users_controller.rb b/web/app/controllers/api_users_controller.rb index 8776ccdfb..b42d215d5 100644 --- a/web/app/controllers/api_users_controller.rb +++ b/web/app/controllers/api_users_controller.rb @@ -662,6 +662,11 @@ class ApiUsersController < ApiController @dump.description = params[:description] @dump.fsize = params[:fsize] @dump.crash_context = params[:crash_context] + send_email = params[:send_email] + if send_email.nil? + send_email = true + end + crash_date = params[:crash_date] # make sure client is passing version information - if not its too old @@ -716,7 +721,7 @@ class ApiUsersController < ApiController logger.debug("sending crash email with subject#{subject}") - AdminMailer.crash_alert(subject: subject, body: body).deliver_now + AdminMailer.crash_alert(subject: subject, body: body).deliver_now if send_email redirect_to write_url, status: 307 else