Permalink
Browse files

fix delete file delayedjob

  • Loading branch information...
Albert Yi
Albert Yi committed Oct 11, 2018
1 parent 185d303 commit d15c0b826654041bd1441684f9bb7dcbb465e142
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/logical/upload_service/utils.rb
@@ -34,7 +34,7 @@ def delete_file(md5, file_ext, upload_id = nil)
return
end
if upload_id
if upload_id && Upload.where(id: upload_id).exists?
CurrentUser.as_system do
Upload.find(upload_id).update(status: "preprocessed + deleted")
end

0 comments on commit d15c0b8

Please sign in to comment.