debian-mirror-gitlab/app/workers/group_import_worker.rb

16 lines
347 B
Ruby
Raw Normal View History

2020-03-09 13:42:32 +05:30
# frozen_string_literal: true
class GroupImportWorker
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