2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class GroupExportWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include ExceptionBacktrace
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
feature_category :importers
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
def perform(current_user_id, group_id, params = {})
|
|
|
|
current_user = User.find(current_user_id)
|
2020-03-09 13:42:32 +05:30
|
|
|
group = Group.find(group_id)
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
::Groups::ImportExport::ExportService.new(group: group, user: current_user, params: params).execute
|
|
|
|
end
|
|
|
|
end
|