From 6cb0c774722dd3ab80dc26dc3490f2e64c1e2201 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 15 Jun 2021 14:55:35 +0200 Subject: [PATCH] Fix user_id being a frozen string User_id args are strings not arrays at this point --- app/graphql/types/person_type.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/graphql/types/person_type.rb b/app/graphql/types/person_type.rb index 77e999741..7724e09d9 100644 --- a/app/graphql/types/person_type.rb +++ b/app/graphql/types/person_type.rb @@ -200,7 +200,8 @@ def citation_count end def response(**args) - user_id = args[:user_id].present? ? args[:user_id] << object[:id] : object[:id] + # Combine the person user id with args user_id(s) + user_id = args[:user_id].nil? ? object[:id] : object[:id] + "," + args[:user_id] Doi.gql_query( args[:query],