Andrew Kane пре 9 година
родитељ
комит
55f6148c23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/blazer.rb

+ 1 - 1
lib/blazer.rb

@@ -80,7 +80,7 @@ module Blazer
   def self.send_failing_checks
     emails = {}
     Blazer::Check.includes(:blazer_query).where(state: %w[failing error]).find_each do |check|
-      check.emails.to_s.split(",").each do |email|
+      check.emails.to_s.split(",").map(&:strip).each do |email|
         (emails[email] ||= []) << check
       end
     end