From 93d1ef1ccafabe47b44af5cc63381df1e57cd1aa Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 13 Nov 2017 12:48:09 -0800 Subject: [PATCH] disable timeout on mass_update approval check on admin dashboard --- app/helpers/bulk_update_requests_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/bulk_update_requests_helper.rb b/app/helpers/bulk_update_requests_helper.rb index d09836a8f..fb81e1bd5 100644 --- a/app/helpers/bulk_update_requests_helper.rb +++ b/app/helpers/bulk_update_requests_helper.rb @@ -16,7 +16,9 @@ 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.raw_tag_match(antecedent).exists? + Post.without_timeout do + !Post.raw_tag_match(antecedent).exists? + end else false