diff --git a/app/graphql/types/organization_type.rb b/app/graphql/types/organization_type.rb index 428bc32e0..70442d75f 100644 --- a/app/graphql/types/organization_type.rb +++ b/app/graphql/types/organization_type.rb @@ -56,8 +56,8 @@ def softwares(**args) end def researchers(**args) - ids = Event.query(nil, obj_id: object[:id], citation_type: "Organization-Person").results.to_a.map do |e| - e.subj_id + ids = Event.query(nil, obj_id: object.id, citation_type: "Organization-Person").results.to_a.map do |e| + orcid_from_url(e.subj_id) end ElasticsearchLoader.for(Researcher).load_many(ids) end