Pass the right value to rake task.

This commit is contained in:
Guo Xiang Tan 2018-09-10 20:07:11 +08:00
parent 4a966c639d
commit 94ff428571

View File

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