Commit e73267fc0e165f0a7b152c58d3111fddfa06eeab
1 parent
a1eb6072
Exists in
master
and in
1 other branch
error emails were not being sent if the app was configured to notify all users
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/notice.rb
... | ... | @@ -83,7 +83,7 @@ class Notice |
83 | 83 | protected |
84 | 84 | |
85 | 85 | def should_notify? |
86 | - app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(problem.notices_count) && app.watchers.any? | |
86 | + app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(problem.notices_count) && app.notification_recipients.any? | |
87 | 87 | end |
88 | 88 | |
89 | 89 | def increase_counter_cache | ... | ... |