diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-12-31 11:23:50 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2019-01-07 11:16:58 +0800 |
commit | 63e9969ca3ac57839b78d9cc44bcf32bc9a45248 (patch) | |
tree | cda51e40b5ea915d26425edfce815ca6fae991e9 /lib/gitlab/import_export/uploads_manager.rb | |
parent | ccbc45559b7bedd1d76c1840bbdfba3cce542af7 (diff) | |
download | gitlab-ce-63e9969ca3ac57839b78d9cc44bcf32bc9a45248.tar.gz |
Refactor upload service to return uploader
Also changes old calls to the service
Diffstat (limited to 'lib/gitlab/import_export/uploads_manager.rb')
-rw-r--r-- | lib/gitlab/import_export/uploads_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/uploads_manager.rb b/lib/gitlab/import_export/uploads_manager.rb index 474e9d45566..e232198150a 100644 --- a/lib/gitlab/import_export/uploads_manager.rb +++ b/lib/gitlab/import_export/uploads_manager.rb @@ -40,7 +40,7 @@ module Gitlab def add_upload(upload) uploader_context = FileUploader.extract_dynamic_path(upload).named_captures.symbolize_keys - UploadService.new(@project, File.open(upload, 'r'), FileUploader, uploader_context).execute + UploadService.new(@project, File.open(upload, 'r'), FileUploader, uploader_context).execute.to_h end def copy_project_uploads |