feat(graphql): implement add/remove instructeurs via API
This commit is contained in:
parent
0557b84eed
commit
afc1f12028
17 changed files with 480 additions and 41 deletions
|
@ -38,7 +38,7 @@ module Instructeurs
|
|||
if groupe_instructeur.remove(instructeur)
|
||||
flash[:notice] = "L’instructeur « #{instructeur.email} » a été retiré du groupe."
|
||||
GroupeInstructeurMailer
|
||||
.remove_instructeur(groupe_instructeur, instructeur, current_user.email)
|
||||
.remove_instructeurs(groupe_instructeur, [instructeur], current_user.email)
|
||||
.deliver_later
|
||||
else
|
||||
flash[:alert] = "L’instructeur « #{instructeur.email} » n’est pas dans le groupe."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue