From 338b927f9529bb4ad9072f18a7099fb16ff4d786 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Tue, 21 May 2019 22:07:08 +0530 Subject: [PATCH] DEV: include local uploads while finding missing uploads in rake task 'posts:missing_uploads' --- lib/tasks/posts.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index c982d5d38bb..1be8289dcdf 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -395,7 +395,7 @@ end def missing_uploads old_scheme_upload_count = 0 - missing = Post.find_missing_uploads do |post, src, path, sha1| + missing = Post.find_missing_uploads(include_local_upload: true) do |post, src, path, sha1| next if sha1.present? upload_id = nil