From d0b8176081886a005339f86f8fc919ba3cf6d02a Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Fri, 10 Nov 2023 15:53:29 +0100 Subject: [PATCH] chore(procedure): faster procedure closing --- app/models/procedure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 0eba2e718..25bb06d75 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -709,7 +709,7 @@ class Procedure < ApplicationRecord close! end - dossiers.visible_by_administration.each do |dossier| + dossiers.visible_by_administration.find_each do |dossier| dossier.hide_and_keep_track!(author, :procedure_removed) end