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

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