chore(procedure): faster procedure closing

This commit is contained in:
Colin Darie 2023-11-10 15:53:29 +01:00
parent 154a993794
commit d0b8176081

View file

@ -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