Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-14 15:00:36 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-10-17 10:24:48 +0300
commit691ed8aca410e8025582579cfa8454b1e54acb12 (patch)
treebc613673beede69d70247b1e897b8b73f204efed /app/services/notification_service.rb
parent1c38dbcadc23485ce1421f10d6062fb00221e0e1 (diff)
recipients should be a list of emails
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 4fef2395c6f..d4976aa8362 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -321,10 +321,10 @@ class NotificationService
pipeline,
pipeline.project,
nil, # The acting user, who won't be added to recipients
- action: pipeline.status)
+ action: pipeline.status).map(&:email)
recipients.each do |to|
- mailer.public_send(email_template, pipeline, to.email).deliver_later
+ mailer.public_send(email_template, pipeline, to).deliver_later
end
end