From fc61d63affe3dc4a7095fc84976347899eed500e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Thu, 17 Nov 2016 17:25:27 +0100 Subject: [PATCH] Fixed bug for the Comment element inside the API_TYPE_DEFINITIONS --- config/initializers/graphql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/graphql.rb b/config/initializers/graphql.rb index 843fe2c00..06b39aaab 100644 --- a/config/initializers/graphql.rb +++ b/config/initializers/graphql.rb @@ -2,7 +2,7 @@ API_TYPE_DEFINITIONS = { User => %I[ id username proposals ], Debate => %I[ id title description author_id author created_at ], Proposal => %I[ id title description author_id author created_at ], - Comment => %I[ id body author_id author commentable_id commentable] + Comment => %I[ id body user_id user commentable_id ] } api_types = {}