From 548806780130da18eb15d682ccb5c80369667fdf Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Wed, 21 Feb 2024 02:01:10 +0000 Subject: [PATCH] api --- app/graphql/types/message_type.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/graphql/types/message_type.rb b/app/graphql/types/message_type.rb index 665c2dd0b..70622647b 100644 --- a/app/graphql/types/message_type.rb +++ b/app/graphql/types/message_type.rb @@ -5,10 +5,10 @@ module Types field :body, String, null: false field :created_at, GraphQL::Types::ISO8601DateTime, null: false field :attachment, Types::File, null: true, deprecation_reason: "Utilisez le champ `attachments` à la place.", extensions: [ - { Extensions::Attachment => { attachment: :piece_jointe } } + { Extensions::Attachment => { attachments: :piece_jointe, as: :single } } ] field :attachments, [Types::File], null: false, extensions: [ - { Extensions::Attachment => { attachment: :piece_jointe, as: :multiple } } + { Extensions::Attachment => { attachments: :piece_jointe } } ] field :correction, CorrectionType, null: true