diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-09-13 14:09:53 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-09-13 14:09:53 +0300 |
commit | 4add6ca6ecb42fe08c0c1fbb1e7d5cf437e8ee3b (patch) | |
tree | 8e368eb60bd8a05d8553508563333ac0b153f352 /app/models/project_services | |
parent | 1b1c6ebf49c7ea9f838bff0f13f53808845d8979 (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.rb | 3 |
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? |