mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 22:35:03 +08:00
Pass the right value to rake task.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user