fix(procedure): do not route cloned procedures from different admin retry
This commit is contained in:
parent
2cec44109d
commit
12eac64572
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ namespace :after_party do
|
|||
.with_discarded
|
||||
.where(routing_enabled: true)
|
||||
.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
|
||||
# run with every deploy (or every time you call after_party:run).
|
||||
|
|
Loading…
Add table
Reference in a new issue