disable timeout for testing whether bulk update request has been approved

This commit is contained in:
r888888888
2017-11-13 14:14:22 -08:00
parent 93d1ef1cca
commit f71a7a97bb

View File

@@ -16,13 +16,14 @@ module BulkUpdateRequestsHelper
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
when :mass_update
Post.without_timeout do
!Post.raw_tag_match(antecedent).exists?
end
!Post.raw_tag_match(antecedent).exists?
else
false
end
rescue PG::QueryCanceled
false
end
def failed?(command, antecedent, consequent)