diff options
author | Stuart Nelson <stuartnelson3@gmail.com> | 2018-02-06 19:09:59 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-03-26 08:10:19 +0100 |
commit | 5f39f9b30853291ec83df2383cd2e7863b72fb27 (patch) | |
tree | ba59e062a442f0e796a25d176a6774efd1983cde /app/services/notification_service.rb | |
parent | bebced8fc9039c5e8a3774af183a8dd9c244f297 (diff) | |
download | gitlab-ce-5f39f9b30853291ec83df2383cd2e7863b72fb27.tar.gz |
Send email to recipients
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index d7d2cde1004..aade82f5cf1 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -363,6 +363,19 @@ class NotificationService end end + def issue_due_email(issue) + recipients = NotificationRecipientService.build_recipients( + issue, + issue.author, + action: "due_date", + skip_current_user: false, + ) + + recipients.each do |recipient| + mailer.send(:issue_due_email, recipient.user.id, issue.id, recipient.reason).deliver_later + end + end + protected def new_resource_email(target, method) |