diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-08 18:10:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-08 18:10:00 +0300 |
commit | 0ebbf19f2d2b87e1f2aca1c59efde1aa6a766cf6 (patch) | |
tree | b45534e86659ab6fa97c240563651b2e03dfce4d /app/services/authorized_project_update | |
parent | ccc2dc45a3e8fab3dfeda097be601b16c5beff13 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/authorized_project_update')
-rw-r--r-- | app/services/authorized_project_update/recalculate_for_user_range_service.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/services/authorized_project_update/recalculate_for_user_range_service.rb b/app/services/authorized_project_update/recalculate_for_user_range_service.rb deleted file mode 100644 index f300c45f019..00000000000 --- a/app/services/authorized_project_update/recalculate_for_user_range_service.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module AuthorizedProjectUpdate - class RecalculateForUserRangeService - def initialize(start_user_id, end_user_id) - @start_user_id = start_user_id - @end_user_id = end_user_id - end - - def execute - User.where(id: start_user_id..end_user_id).select(:id).find_each do |user| # rubocop: disable CodeReuse/ActiveRecord - Users::RefreshAuthorizedProjectsService.new(user, source: self.class.name).execute - end - end - - private - - attr_reader :start_user_id, :end_user_id - end -end |