Skip to content

Commit

Permalink
fix aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 19, 2021
1 parent c509532 commit f653f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def index
end
occurred =
if total.positive?
facet_by_source(response.response.aggregations.occurred.buckets)
facet_by_year(response.response.aggregations.occurred.buckets)
end
prefixes =
if total.positive?
facet_by_source(response.response.aggregations.prefixes.buckets)
facet_by_key(response.response.aggregations.prefixes.buckets)
end
citation_types =
if total.positive?
Expand Down

0 comments on commit f653f68

Please sign in to comment.