Refactor NotificationService#pipeline_finished to use skip_current_user

instead of passing nil for current_user
This commit is contained in:
Richard Macklin 2017-02-03 21:01:45 -08:00
parent 0e2c96e709
commit 7cd260b107
1 changed files with 3 additions and 2 deletions

View File

@ -327,8 +327,9 @@ class NotificationService
recipients ||= build_recipients(
pipeline,
pipeline.project,
nil, # The acting user, who won't be added to recipients
action: pipeline.status).map(&:notification_email)
pipeline.user,
action: pipeline.status,
skip_current_user: false).map(&:notification_email)
if recipients.any?
mailer.public_send(email_template, pipeline, recipients).deliver_later