DEV: Fix multisite support for `posts:missing_uploads`.

DEV: Fix multisite support for posts:missing_uploads.

diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index 7749da3..26bf54e 100644
--- a/lib/tasks/posts.rake
+++ b/lib/tasks/posts.rake
@@ -506,8 +506,8 @@ def missing_uploads
 end
 
 desc 'Finds missing post upload records from cooked HTML content'
-task 'posts:missing_uploads', [:single_site] => :environment do |_, args|
-  if args[:single_site].to_s.downcase == "single_site"
+task 'posts:missing_uploads' => :environment do |_, args|
+  if ENV["RAILS_DB"]
     missing_uploads
   else
     RailsMultisite::ConnectionManagement.each_connection do

GitHub sha: e9dc48cc