Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/projects/import_export/relation_export_worker.rb')
-rw-r--r--app/workers/projects/import_export/relation_export_worker.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/workers/projects/import_export/relation_export_worker.rb b/app/workers/projects/import_export/relation_export_worker.rb
index 7747d4f4099..dd02c36ef42 100644
--- a/app/workers/projects/import_export/relation_export_worker.rb
+++ b/app/workers/projects/import_export/relation_export_worker.rb
@@ -33,13 +33,15 @@ module Projects
Gitlab::Export::Logger.error(log_payload)
end
- def perform(project_relation_export_id)
+ def perform(project_relation_export_id, user_id, params = {})
+ user = User.find(user_id)
+ params.symbolize_keys!
relation_export = Projects::ImportExport::RelationExport.find(project_relation_export_id)
relation_export.retry! if relation_export.started?
if relation_export.queued?
- Projects::ImportExport::RelationExportService.new(relation_export, jid).execute
+ Projects::ImportExport::RelationExportService.new(relation_export, user, jid, params).execute
end
end
end