Commit 3bd8a171797b960f733bc26d8630ae682c1472fc

Authored by Luke Baker
1 parent 08b6c881

add ERRORS_EMAIL back in for cron errors

config/initializers/mail.rb
... ... @@ -14,3 +14,4 @@ ActionMailer::Base.smtp_settings = {
14 14  
15 15 DO_NOT_REPLY = "donotreply@example.com"
16 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 336 if errors.empty?
337 337 CronMailer.deliver_info_message(CRON_EMAIL, "Test of API Vote Consistency passed", email_text)
338 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 340 end
341 341  
342 342 end
... ...