Pass the right value to rake task.
This commit is contained in:
parent
4a966c639d
commit
94ff428571
|
@ -718,10 +718,10 @@ end
|
||||||
|
|
||||||
task "uploads:list_posts_with_broken_images" => :environment do
|
task "uploads:list_posts_with_broken_images" => :environment do
|
||||||
if ENV["RAILS_DB"]
|
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
|
else
|
||||||
RailsMultisite::ConnectionManagement.each_connection do |db|
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue