summaryrefslogtreecommitdiff
path: root/lib/api/project_export.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-09-07 13:42:49 +0200
committerJames Lopez <james@jameslopez.es>2018-09-07 13:42:49 +0200
commit27442862cf81881c81552e64d0b4d3354535c45e (patch)
treea05e89cdad1f455971748b74f4092ca3992de8b8 /lib/api/project_export.rb
parenta2aa505805478540b3150b2f9093c8658e18597d (diff)
downloadgitlab-ce-27442862cf81881c81552e64d0b4d3354535c45e.tar.gz
refactor code based on feedback
Diffstat (limited to 'lib/api/project_export.rb')
-rw-r--r--lib/api/project_export.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/project_export.rb b/lib/api/project_export.rb
index 8954a0c0a4c..9163887ac61 100644
--- a/lib/api/project_export.rb
+++ b/lib/api/project_export.rb
@@ -21,8 +21,8 @@ module API
detail 'This feature was introduced in GitLab 10.6.'
end
get ':id/export/download' do
- if user_project.export_project_object_exists?
- present_carrierwave_file!(user_project.import_export_upload.export_file)
+ if user_project.export_project_exists?
+ present_carrierwave_file!(user_ project.export_file)
else
render_api_error!('404 Not found or has expired', 404)
end