From ba022234c6613c19ab9cde264c33f5b06ae62650 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 13 Aug 2018 10:44:08 +0800 Subject: [PATCH] Add onceoff job to fix incorrect upload extensions. --- app/jobs/onceoff/fix_invalid_upload_extensions.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/jobs/onceoff/fix_invalid_upload_extensions.rb diff --git a/app/jobs/onceoff/fix_invalid_upload_extensions.rb b/app/jobs/onceoff/fix_invalid_upload_extensions.rb new file mode 100644 index 00000000000..11a00fe35e0 --- /dev/null +++ b/app/jobs/onceoff/fix_invalid_upload_extensions.rb @@ -0,0 +1,9 @@ +require_dependency "upload_fixer" + +module Jobs + class FixInvalidUploadExtensions < Jobs::Onceoff + def execute_onceoff(args) + UploadFixer.fix_all_extensions + end + end +end