handle preprocessed dups

This commit is contained in:
Albert Yi
2018-06-19 12:39:03 -07:00
parent 35bc9a2e32
commit a560d61b68
+6
View File
@@ -66,6 +66,12 @@ class UploadService
def self.delete_file(md5, file_ext, upload_id = nil)
if Post.where(md5: md5).exists?
if upload_id
CurrentUser.as_system do
Upload.find(upload_id).update(status: "completed")
end
end
return
end