mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 05:03:37 +08:00
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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user