diff --git a/app/logical/upload_error_checker.rb b/app/logical/upload_error_checker.rb index f68cdf949..ec3647519 100644 --- a/app/logical/upload_error_checker.rb +++ b/app/logical/upload_error_checker.rb @@ -4,7 +4,7 @@ require 'mail' class UploadErrorChecker def check! - uploads = Upload.where("status like 'error%' and status not like 'error: Upload::Error - Post with MD5%' and status not like 'error: RuntimeError - duplicate%' and status not like 'error: ActiveRecord::RecordInvalid - Validation failed: Md5 has already been taken' and created_at >= ?", 1.hour.ago) + uploads = Upload.where("status like 'error%' and status not like 'error: Upload::Error - Post with MD5%' and status not like 'error: ActiveRecord::RecordInvalid - Validation failed: Md5 duplicate%' and created_at >= ?", 1.hour.ago) if uploads.size > 5 mail = Mail.new do from Danbooru.config.contact_email