refactor(graphql): use shorthand syntax in mutations
This commit is contained in:
parent
4fe081e4be
commit
30a5c592e6
17 changed files with 27 additions and 52 deletions
|
@ -11,9 +11,9 @@ module Mutations
|
|||
field :errors, [Types::ValidationErrorType], null: true
|
||||
|
||||
def resolve(dossier:, groupe_instructeur:)
|
||||
dossier.update!(groupe_instructeur: groupe_instructeur)
|
||||
dossier.update!(groupe_instructeur:)
|
||||
|
||||
{ dossier: dossier }
|
||||
{ dossier: }
|
||||
end
|
||||
|
||||
def authorized?(dossier:, groupe_instructeur:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue