DEV: Fix multisite support for `posts:missing_uploads`.
This commit is contained in:
parent
c7516c42e9
commit
e9dc48ccae
|
@ -506,8 +506,8 @@ def missing_uploads
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Finds missing post upload records from cooked HTML content'
|
desc 'Finds missing post upload records from cooked HTML content'
|
||||||
task 'posts:missing_uploads', [:single_site] => :environment do |_, args|
|
task 'posts:missing_uploads' => :environment do |_, args|
|
||||||
if args[:single_site].to_s.downcase == "single_site"
|
if ENV["RAILS_DB"]
|
||||||
missing_uploads
|
missing_uploads
|
||||||
else
|
else
|
||||||
RailsMultisite::ConnectionManagement.each_connection do
|
RailsMultisite::ConnectionManagement.each_connection do
|
||||||
|
|
Loading…
Reference in New Issue