Refactor NotificationService#pipeline_finished to use skip_current_user
instead of passing nil for current_user
This commit is contained in:
parent
0e2c96e709
commit
7cd260b107
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue