Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Nov 1, 2019
1 parent c71ccaa commit e7db3c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/graphql/types/metric_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module MetricInterface
field :view_count, Integer, null: true, description: "The count of DOI views according to the COUNTER code of Practice"
field :download_count, Integer, null: true, description: "The count of DOI dowloands according to the COUNTER code of Practice"
field :citation_count, Integer, null: true, description: "The count of DOI events that represents citations"
field :reference_count, Integer, null: true, description: "The count of DOI events that represents references"
field :relation_count, Integer, null: true, description: "The count of DOI events that represents relations"
# field :citations_list, [String], null: true, description: "List of DOIS citing a given DOI"
# field :referenceslist, [String], null: true, description: "List of DOIS that a given DOI references to"
# field :relations_list, [String], null: true, description: "List of DOIS relations a given DOI has"
Expand All @@ -29,12 +31,12 @@ def citation_count
meta.first.fetch("total", {}).fetch("value", nil) if meta.any?
end

def references_count
def reference_count
meta = references_aggs
meta.first.fetch("total", {}).fetch("value", nil) if meta.any?
end

def relations_count
def relation_count
meta = relations_aggs
meta.first.fetch("total", {}).fetch("value", nil) if meta.any?
end
Expand Down

0 comments on commit e7db3c0

Please sign in to comment.