Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-07-30 15:07:03 +08:00
parent 96a0448c52
commit acde8d4323

View File

@ -1,6 +1,6 @@
module Jobs
class FixInvalidGravatarUploads < Jobs::Onceoff
def execute_onceoff
def execute_onceoff(args)
Upload.where(original_filename: "gravatar.png").find_each do |upload|
extension = FastImage.type(Discourse.store.path_for(upload))
current_extension = upload.extension