feat(routing): do not run routing engine if dossier has been re routed
This commit is contained in:
parent
18054fe346
commit
a9c6cc322a
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
module RoutingEngine
|
||||
def self.compute(dossier)
|
||||
return if !dossier.procedure.feature_enabled?(:routing_rules)
|
||||
return if dossier.forced_groupe_instructeur
|
||||
|
||||
matching_groupe = dossier.procedure.groupe_instructeurs.active.reject(&:routing_to_configure?).find do |gi|
|
||||
gi.routing_rule&.compute(dossier.champs)
|
||||
|
|
Loading…
Reference in a new issue