refactor(routing): toggle routing from mutations
This commit is contained in:
parent
ebb48b0aec
commit
3de5aa0382
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue