Fix typo in a0aeabbb940ec9df40625c396616d5d64b30e20f.

This commit is contained in:
Guo Xiang Tan
2019-06-25 15:18:48 +08:00
parent 2eece2c41b
commit 2b19e2acc8
3 changed files with 50 additions and 1 deletions

View File

@ -433,7 +433,7 @@ def missing_uploads
end
if file_path.present?
if (upload = UploadCreator.new(File.open(file_path), File.basename(path)).create_for(Discourse.system_user.id)).presisted?
if (upload = UploadCreator.new(File.open(file_path), File.basename(path)).create_for(Discourse.system_user.id)).persisted?
upload_id = upload.id
post.reload