😭 AASM does not support keyword arguments

https://github.com/aasm/aasm/issues/672
This commit is contained in:
simon lehericey 2021-11-26 12:19:40 +01:00
parent 7e76b35297
commit 5a0fb6237f
11 changed files with 63 additions and 40 deletions

View file

@ -14,7 +14,7 @@ module Mutations
field :errors, [Types::ValidationErrorType], null: true
def resolve(dossier:, instructeur:, motivation:, justificatif: nil, disable_notification:)
dossier.refuser!(instructeur, motivation, justificatif: justificatif, disable_notification: disable_notification)
dossier.refuser!(instructeur: instructeur, motivation: motivation, justificatif: justificatif, disable_notification: disable_notification)
{ dossier: dossier }
end