mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:53:44 +08:00
Add onceoff job to fix incorrect upload extensions.
This commit is contained in:
parent
a6820d8767
commit
ba022234c6
9
app/jobs/onceoff/fix_invalid_upload_extensions.rb
Normal file
9
app/jobs/onceoff/fix_invalid_upload_extensions.rb
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user