From 94ff428571001904e6d427604e69a2f300bb42bc Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 10 Sep 2018 20:07:11 +0800 Subject: [PATCH] Pass the right value to rake task. --- lib/tasks/uploads.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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