Fix directory.files.all not being converted to array

This commit is contained in:
Hugo Gameiro 2024-12-18 11:27:05 +00:00 committed by GitHub
parent a5ac53d326
commit 6434d8ab4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,7 @@ module Mastodon::CLI
loop do
objects = begin
directory.files.all(prefix: prefix, marker: last_key, limit: 1000)
directory.files.all(prefix: prefix, marker: last_key, limit: 1000).to_a
rescue => e
progress.log(pastel.red("Error fetching list of files: #{e}"))
progress.log("If you want to continue from this point, add --start-after=#{last_key} to your command") if last_key