FIX: prefix should precede folder path (follow-up on 10fbb07e)

This commit is contained in:
Rishabh 2019-01-15 15:57:25 +05:30
parent 59e5af466b
commit ff8f9dc1c9
1 changed files with 1 additions and 1 deletions

View File

@ -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)