From e9dc48ccaec518741b4ea604f6961c81ac4d7d84 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 29 Jul 2019 10:56:11 +0800 Subject: [PATCH] DEV: Fix multisite support for `posts:missing_uploads`. --- lib/tasks/posts.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 7749da3b33e..26bf54ec84e 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