debian-mirror-gitlab/app/workers/group_export_worker.rb
2020-06-23 00:09:42 +05:30

16 lines
462 B
Ruby

# frozen_string_literal: true
class GroupExportWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
include ExceptionBacktrace
feature_category :importers
loggable_arguments 2
def perform(current_user_id, group_id, params = {})
current_user = User.find(current_user_id)
group = Group.find(group_id)
::Groups::ImportExport::ExportService.new(group: group, user: current_user, params: params).execute
end
end