debian-mirror-gitlab/app/workers/group_import_worker.rb
2020-04-08 14:13:33 +05:30

15 lines
394 B
Ruby

# frozen_string_literal: true
class GroupImportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
include ExceptionBacktrace
feature_category :importers
def perform(user_id, group_id)
current_user = User.find(user_id)
group = Group.find(group_id)
::Groups::ImportExport::ImportService.new(group: group, user: current_user).execute
end
end