Skip to content

Commit

Permalink
fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 26, 2020
1 parent dffbd23 commit c1022ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/graphql/types/person_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ def type
"Person"
end

def datasets(**_args)
def datasets(**args)
Doi.query(nil, user_id: orcid_from_url(object[:id]), relation_type_id: "dataset", state: "findable", page: { size: args[:first], number: 1 }).results.to_a
end

def publications(**_args)
def publications(**args)
Doi.query(nil, user_id: orcid_from_url(object[:id]), relation_type_id: "text", state: "findable", page: { size: args[:first], number: 1 }).results.to_a
end

def softwares(**_args)
Doi.query(nil, user_id: orcid_from_url(object[:id]), relation_type_id: "software", state: "findable", page: { size: args[:first], number: 1 }).results.to_a
end

def works(**_args)
def works(**args)
Doi.query(nil, user_id: orcid_from_url(object[:id]), state: "findable", page: { size: args[:first], number: 1 }).results.to_a
end

Expand Down

0 comments on commit c1022ec

Please sign in to comment.