Commit 3bd8a171797b960f733bc26d8630ae682c1472fc
1 parent
08b6c881
Exists in
master
and in
1 other branch
add ERRORS_EMAIL back in for cron errors
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
config/initializers/mail.rb
| @@ -14,3 +14,4 @@ ActionMailer::Base.smtp_settings = { | @@ -14,3 +14,4 @@ ActionMailer::Base.smtp_settings = { | ||
| 14 | 14 | ||
| 15 | DO_NOT_REPLY = "donotreply@example.com" | 15 | DO_NOT_REPLY = "donotreply@example.com" |
| 16 | CRON_EMAIL = ["cron@allourideas.org"] | 16 | CRON_EMAIL = ["cron@allourideas.org"] |
| 17 | +ERRORS_EMAIL = ["errors@allourideas.org"] |
lib/tasks/test_api.rake
| @@ -336,7 +336,7 @@ namespace :test_api do | @@ -336,7 +336,7 @@ namespace :test_api do | ||
| 336 | if errors.empty? | 336 | if errors.empty? |
| 337 | CronMailer.deliver_info_message(CRON_EMAIL, "Test of API Vote Consistency passed", email_text) | 337 | CronMailer.deliver_info_message(CRON_EMAIL, "Test of API Vote Consistency passed", email_text) |
| 338 | else | 338 | else |
| 339 | - CronMailer.deliver_info_message(CRON_EMAIL, "Error! Failure of API Vote Consistency " , email_text) | 339 | + CronMailer.deliver_info_message(CRON_EMAIL.to_a + ERRORS_EMAIL.to_a, "Error! Failure of API Vote Consistency " , email_text) |
| 340 | end | 340 | end |
| 341 | 341 | ||
| 342 | end | 342 | end |