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