diff --git a/app/graphql/api/v2/schema.rb b/app/graphql/api/v2/schema.rb index e077a26f3..b783a5945 100644 --- a/app/graphql/api/v2/schema.rb +++ b/app/graphql/api/v2/schema.rb @@ -26,7 +26,7 @@ class API::V2::Schema < GraphQL::Schema Types::DossierType when Commentaire Types::MessageType - when Instructeur, User + when Instructeur, User, Expert Types::ProfileType when Individual Types::PersonnePhysiqueType diff --git a/app/graphql/types/avis_type.rb b/app/graphql/types/avis_type.rb index d31217299..de29a8e19 100644 --- a/app/graphql/types/avis_type.rb +++ b/app/graphql/types/avis_type.rb @@ -12,6 +12,6 @@ module Types ] field :instructeur, Types::ProfileType, null: false, method: :claimant - field :expert, Types::ProfileType, null: true, method: :instructeur + field :expert, Types::ProfileType, null: true end end