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