|
@@ -58,7 +58,7 @@ module Blazer
|
|
|
|
|
|
# do not notify on creation, except when not passing
|
|
# do not notify on creation, except when not passing
|
|
if (state_was != "new" || state != "passing") && state != state_was && emails.present?
|
|
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
|
|
end
|
|
save! if changed?
|
|
save! if changed?
|
|
end
|
|
end
|