Commit 7cd260b1 authored by Richard Macklin's avatar Richard Macklin

Refactor NotificationService#pipeline_finished to use skip_current_user

instead of passing nil for current_user
parent 0e2c96e7
...@@ -327,8 +327,9 @@ class NotificationService ...@@ -327,8 +327,9 @@ class NotificationService
recipients ||= build_recipients( recipients ||= build_recipients(
pipeline, pipeline,
pipeline.project, pipeline.project,
nil, # The acting user, who won't be added to recipients pipeline.user,
action: pipeline.status).map(&:notification_email) action: pipeline.status,
skip_current_user: false).map(&:notification_email)
if recipients.any? if recipients.any?
mailer.public_send(email_template, pipeline, recipients).deliver_later mailer.public_send(email_template, pipeline, recipients).deliver_later
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment