diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index a2033a5..e6d1bae 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -850,6 +850,11 @@ module Mauve alert_db.raised_at = nil alert_db.will_raise_at = raise_time end + else + # + # If no raise time has been set, then update the database to reflect this. + # + alert_db.raised_at = alert_db.will_raise_at = nil end if clear_time @@ -863,6 +868,11 @@ module Mauve alert_db.cleared_at = nil alert_db.will_clear_at = clear_time end + else + # + # If no clear time has been set, then update the database to reflect this. + # + alert_db.cleared_at = alert_db.will_clear_at = nil end # |