ignore timeout for bulk reverts
This commit is contained in:
@@ -9,10 +9,12 @@ class BulkRevert
|
|||||||
|
|
||||||
ModAction.log("Processed bulk revert for #{constraints.inspect}")
|
ModAction.log("Processed bulk revert for #{constraints.inspect}")
|
||||||
|
|
||||||
|
ActiveRecord::Base.without_timeout do
|
||||||
find_post_versions.order("updated_at, id").each do |version|
|
find_post_versions.order("updated_at, id").each do |version|
|
||||||
version.undo!
|
version.undo!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user