From 55c856c522821b641f569eed0c33a9040a599f03 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 26 Aug 2018 16:53:19 +0200 Subject: [PATCH] Delay e-mail notifications by 2 minutes (#8438) Fix #8430 --- app/services/notify_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb index 6490d27..7d0dcc7 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?