diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-26 16:53:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 16:53:19 +0200 |
commit | 55c856c522821b641f569eed0c33a9040a599f03 (patch) | |
tree | ee851345ac557b3098b79a52832bd7ece97f4a42 | |
parent | b378b4c5c7e99de2c14e39e2733a745689de8ad1 (diff) |
Delay e-mail notifications by 2 minutes (#8438)
Fix #8430
-rw-r--r-- | app/services/notify_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb index 6490d2735..7d0dcc7ad 100644 --- a/app/services/notify_service.rb +++ b/app/services/notify_service.rb @@ -123,7 +123,7 @@ class NotifyService < BaseService def send_email return if @notification.activity.nil? - NotificationMailer.public_send(@notification.type, @recipient, @notification).deliver_later + NotificationMailer.public_send(@notification.type, @recipient, @notification).deliver_later(wait: 2.minutes) end def email_enabled? |