blob: 0b502143e5d0b36046d659124bed6f73ce1173b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class ProjectExportWorker
include ApplicationWorker
include ExceptionBacktrace
sidekiq_options retry: 3
def perform(current_user_id, project_id, params = {})
params = params.with_indifferent_access
current_user = User.find(current_user_id)
project = Project.find(project_id)
::Projects::ImportExport::ExportService.new(project, current_user, params).execute
end
end
|