FIX: Make rake site:export_structure export uploads (#13938)

It failed because of an undefined variable.
This commit is contained in:
Bianca Nenciu 2021-08-04 11:14:30 +03:00 committed by GitHub
parent 4122affc0f
commit e2af2a2219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ZippedSiteStructure
puts " - Exporting upload #{upload_or_id_or_url} to #{zip_path}"
@zip.add(zip_path, local_path)
{ filename: upload.original_filename, path: file_zip_path }
{ filename: upload.original_filename, path: zip_path }
end
def get_upload(upload, opts = {})