Skip to content
Snippets Groups Projects
Commit 3d8900c0 authored by Robert Speicher's avatar Robert Speicher
Browse files

Fix RuboCop failure in app/services/notification_service.rb

parent 9dd50b57
No related branches found
No related tags found
No related merge requests found
Loading
@@ -518,8 +518,13 @@ class NotificationService
Loading
@@ -518,8 +518,13 @@ class NotificationService
def close_resource_email(target, project, current_user, method, skip_current_user: true) def close_resource_email(target, project, current_user, method, skip_current_user: true)
action = method == :merged_merge_request_email ? "merge" : "close" action = method == :merged_merge_request_email ? "merge" : "close"
   
recipients = build_recipients(target, project, current_user, action: action, recipients = build_recipients(
skip_current_user: skip_current_user) target,
project,
current_user,
action: action,
skip_current_user: skip_current_user
)
   
recipients.each do |recipient| recipients.each do |recipient|
mailer.send(method, recipient.id, target.id, current_user.id).deliver_later mailer.send(method, recipient.id, target.id, current_user.id).deliver_later
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment