refactor(routing): toggle routing from mutations

This commit is contained in:
Eric Leroy-Terquem 2023-06-26 15:12:39 +02:00
parent ebb48b0aec
commit 3de5aa0382
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ module Mutations
.build(label: groupe_instructeur.label, closed: groupe_instructeur.closed, instructeurs: [current_administrateur.instructeur].compact)
if groupe_instructeur.save
groupe_instructeur.toggle_routing
# ugly hack to keep retro compatibility
# do not judge

View file

@ -11,6 +11,7 @@ module Mutations
def resolve(groupe_instructeur:, label: nil, closed: nil)
if groupe_instructeur.update({ label:, closed: }.compact)
groupe_instructeur.toggle_routing
# ugly hack to keep retro compatibility
# do not judge