DEV: include local uploads while finding missing uploads

in rake task 'posts:missing_uploads'
This commit is contained in:
Vinoth Kannan 2019-05-21 22:07:08 +05:30
parent 7b82850f66
commit 338b927f95
1 changed files with 1 additions and 1 deletions

View File

@ -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