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-13 14:09:53 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-09-13 14:09:53 +0300
commit4add6ca6ecb42fe08c0c1fbb1e7d5cf437e8ee3b (patch)
tree8e368eb60bd8a05d8553508563333ac0b153f352 /app/models/project_services
parent1b1c6ebf49c7ea9f838bff0f13f53808845d8979 (diff)
Try to integrate the email into notification system
Diffstat (limited to 'app/models/project_services')
-rw-r--r--app/models/project_services/pipelines_email_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project_services/pipelines_email_service.rb b/app/models/project_services/pipelines_email_service.rb
index 1f852445c1c..7ce0aa7c16e 100644
--- a/app/models/project_services/pipelines_email_service.rb
+++ b/app/models/project_services/pipelines_email_service.rb
@@ -34,7 +34,8 @@ class PipelinesEmailService < Service
return unless all_recipients.any?
- PipelineEmailWorker.perform_async(data, all_recipients)
+ pipeline = Ci::Pipeline.find(data[:object_attributes][:id])
+ Ci::SendPipelineNotificationService.new(pipeline).execute(all_recipients)
end
def can_test?