Fix reverse cron ordering

This commit is contained in:
2023-05-07 20:53:20 +10:00
parent 05411d5a32
commit 9ef9eda41c
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ module Admin
MEDIA_DIR = "public/media/".freeze
expose :photos_buckets do
Dir["#{MEDIA_DIR}*"].each_with_object({}) do |root, memo|
Dir["#{MEDIA_DIR}*"].reverse.each_with_object({}) do |root, memo|
memo[root.gsub(MEDIA_DIR, "")] = Dir["#{root}/**"]
end
end