diff options
Diffstat (limited to 'app/services/notification_recipients/build_service.rb')
-rw-r--r-- | app/services/notification_recipients/build_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/notification_recipients/build_service.rb b/app/services/notification_recipients/build_service.rb index 0fe0d26d7b2..040ecc29d3a 100644 --- a/app/services/notification_recipients/build_service.rb +++ b/app/services/notification_recipients/build_service.rb @@ -13,8 +13,8 @@ module NotificationRecipients NotificationRecipient.new(user, *args).notifiable? end - def self.build_recipients(*args) - ::NotificationRecipients::Builder::Default.new(*args).notification_recipients + def self.build_recipients(target, current_user, **args) + ::NotificationRecipients::Builder::Default.new(target, current_user, **args).notification_recipients end def self.build_new_note_recipients(*args) @@ -25,8 +25,8 @@ module NotificationRecipients ::NotificationRecipients::Builder::MergeRequestUnmergeable.new(*args).notification_recipients end - def self.build_project_maintainers_recipients(*args) - ::NotificationRecipients::Builder::ProjectMaintainers.new(*args).notification_recipients + def self.build_project_maintainers_recipients(target, **args) + ::NotificationRecipients::Builder::ProjectMaintainers.new(target, **args).notification_recipients end def self.build_new_release_recipients(*args) |