debian-mirror-gitlab/app/services/user_project_access_changed_service.rb
2017-08-17 22:00:37 +05:30

9 lines
213 B
Ruby

class UserProjectAccessChangedService
def initialize(user_ids)
@user_ids = Array.wrap(user_ids)
end
def execute
AuthorizedProjectsWorker.bulk_perform_and_wait(@user_ids.map { |id| [id] })
end
end