Prechádzať zdrojové kódy

Fixed issue with check emails sometimes failing for default Rails 5 ActiveJob adapter

Andrew Kane 7 rokov pred
rodič
commit
31801a1e62
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 0
      CHANGELOG.md
  2. 1 1
      app/models/blazer/check.rb

+ 1 - 0
CHANGELOG.md

@@ -1,5 +1,6 @@
 ## 1.7.5 [unreleased]
 
+- Fixed issue with check emails sometimes failing for default Rails 5 ActiveJob adapter
 - Fixed sorting for new dashboards
 
 ## 1.7.4

+ 1 - 1
app/models/blazer/check.rb

@@ -58,7 +58,7 @@ module Blazer
 
       # do not notify on creation, except when not passing
       if (state_was != "new" || state != "passing") && state != state_was && emails.present?
-        Blazer::CheckMailer.state_change(self, state, state_was, result.rows.size, message, result.columns, result.rows.first(10).as_json, result.column_types, check_type).deliver_later
+        Blazer::CheckMailer.state_change(self, state, state_was, result.rows.size, message, result.columns, result.rows.first(10).as_json, result.column_types, check_type).deliver_now
       end
       save! if changed?
     end