FIX: prefix should precede folder path (follow-up on 10fbb07e
)
This commit is contained in:
parent
59e5af466b
commit
ff8f9dc1c9
|
@ -275,7 +275,7 @@ def migrate_to_s3
|
|||
|
||||
s3_objects = []
|
||||
prefix = Rails.configuration.multisite ? "#{db}/original/" : "original/"
|
||||
options = { bucket: bucket, prefix: prefix + folder }
|
||||
options = { bucket: bucket, prefix: folder + prefix }
|
||||
|
||||
loop do
|
||||
response = s3.list_objects_v2(options)
|
||||
|
|
Loading…
Reference in New Issue