Delay e-mail notifications by 2 minutes (#8438)

Fix #8430
lolsob-rspec
Eugen Rochko 2018-08-26 16:53:19 +02:00 committed by GitHub
parent 7271a40d09
commit 63859550d3
1 changed files with 1 additions and 1 deletions

View File

@ -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?