diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 96943ac41f3..b190b3a5c8b 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -718,10 +718,10 @@ end task "uploads:list_posts_with_broken_images" => :environment do if ENV["RAILS_DB"] - list_broken_posts(recover_from_s3: ENV["RECOVER_FROM_S3"]) + list_broken_posts(recover_from_s3: !!ENV["RECOVER_FROM_S3"]) else RailsMultisite::ConnectionManagement.each_connection do |db| - list_broken_posts(recover_from_s3: ENV["RECOVER_FROM_S3"]) + list_broken_posts(recover_from_s3: !!ENV["RECOVER_FROM_S3"]) end end end