mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix S3_BUCKET not being defined
This commit is contained in:
parent
dc79a6dc9e
commit
ff17a7e367
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class TeamExporter
|
|||
end
|
||||
yield if block_given?
|
||||
dir = FileUtils.mkdir_p(File.join(dir_name, a.id.to_s)).first
|
||||
if ENV['S3_BUCKET']
|
||||
if defined?(S3_BUCKET)
|
||||
s3_asset =
|
||||
S3_BUCKET.object(a.public_send(attachment_name).path.remove(%r{^/}))
|
||||
file_name = a.public_send(attachment_name).original_filename
|
||||
|
|
Loading…
Reference in a new issue