fix(procedure): do not route cloned procedures from different admin retry

This commit is contained in:
Eric Leroy-Terquem 2023-09-28 14:18:59 +02:00
parent 2cec44109d
commit 12eac64572

View file

@ -8,7 +8,9 @@ namespace :after_party do
.with_discarded .with_discarded
.where(routing_enabled: true) .where(routing_enabled: true)
.filter { |p| p.groupe_instructeurs.active.count == 1 } .filter { |p| p.groupe_instructeurs.active.count == 1 }
.update_all(routing_enabled: false) .each do |p|
p.update!(routing_enabled: false)
end
# Update task as completed. If you remove the line below, the task will # Update task as completed. If you remove the line below, the task will
# run with every deploy (or every time you call after_party:run). # run with every deploy (or every time you call after_party:run).