diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 4fef2395c6f49c30ed84080277f25d9d8d75798a..d4976aa8362ba8cc1e2801320dded853ed350941 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