diff --git a/app/models/online_notification.rb b/app/models/online_notification.rb index 9b48f0150..ed5907408 100644 --- a/app/models/online_notification.rb +++ b/app/models/online_notification.rb @@ -199,7 +199,7 @@ cleanup old online notifications def self.cleanup OnlineNotification.where('created_at < ?', Time.zone.now - 12.months).delete_all - OnlineNotification.where('seen = ? AND created_at < ?', true, Time.zone.now - 2.days).delete_all + OnlineNotification.where('seen = ? AND created_at < ?', true, Time.zone.now - 1.days).delete_all # notify all agents users = Ticket::ScreenOptions.agents