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/services/bulk_imports/relation_export_service.rb')
-rw-r--r--app/services/bulk_imports/relation_export_service.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/services/bulk_imports/relation_export_service.rb b/app/services/bulk_imports/relation_export_service.rb
index 142bc48efe3..ed71c09420b 100644
--- a/app/services/bulk_imports/relation_export_service.rb
+++ b/app/services/bulk_imports/relation_export_service.rb
@@ -16,7 +16,7 @@ module BulkImports
def execute
find_or_create_export! do |export|
- remove_existing_export_file!(export)
+ export.remove_existing_upload!
export_service.execute
compress_exported_relation
upload_compressed_file(export)
@@ -45,15 +45,6 @@ module BulkImports
fail_export!(export, e)
end
- def remove_existing_export_file!(export)
- upload = export.upload
-
- return unless upload&.export_file&.file
-
- upload.remove_export_file!
- upload.save!
- end
-
def export_service
@export_service ||= if config.tree_relation?(relation) || config.self_relation?(relation)
TreeExportService.new(portable, export_path, relation, user)