feat(api.dossier.modifier_annotation): stop validation only with graphql schema, also validate with our validations methods
This commit is contained in:
parent
8e6c5d1567
commit
e63b777bd9
2 changed files with 12 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Mutations
|
|||
annotation.value = value
|
||||
end
|
||||
|
||||
if annotation.save
|
||||
if annotation.validate(:champs_private_value) && annotation.save
|
||||
{ annotation: }
|
||||
else
|
||||
{ errors: annotation.errors.full_messages }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue