diff options
-rw-r--r-- | lib/mauve/notifier.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mauve/notifier.rb b/lib/mauve/notifier.rb index 2e3ac89..67cd89b 100644 --- a/lib/mauve/notifier.rb +++ b/lib/mauve/notifier.rb @@ -36,10 +36,12 @@ module Mauve # This sends the notification for an alert # def notify(alert, at) + alert.reload if alert.alert_group.nil? logger.warn "Could not notify for #{alert} since there are no matching alert groups" else alert.alert_group.notify(alert, at) + alert.save if alert.is_a?(Alert) end end |