Skip to content

Commit

Permalink
fix organization-researcher connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 22, 2019
1 parent 9b16e5e commit 18bd618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/graphql/types/organization_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18bd618

Please sign in to comment.