DEV: rename 'uploads:missing' rake task into 'uploads:missing_files'.

To improve the readability.
This commit is contained in:
Vinoth Kannan 2019-05-28 23:30:43 +05:30
parent bc14452585
commit b3779dc377
1 changed files with 6 additions and 2 deletions

View File

@ -632,11 +632,11 @@ def clean_up_uploads
end
################################################################################
# missing #
# missing files #
################################################################################
# list all missing uploads and optimized images
task "uploads:missing" => :environment do
task "uploads:missing_files" => :environment do
if ENV["RAILS_DB"]
list_missing_uploads(skip_optimized: ENV['SKIP_OPTIMIZED'])
else
@ -665,6 +665,10 @@ def list_missing_uploads(skip_optimized: false)
Discourse.store.list_missing_uploads(skip_optimized: skip_optimized)
end
task "uploads:missing" => :environment do
Rake::Task["uploads:missing_files"].invoke
end
################################################################################
# regenerate_missing_optimized #
################################################################################