Skip to content

Commit

Permalink
fix leaderboard (read correct key from aggregations)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Nov 26, 2016
1 parent cf1b30f commit ff192ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Controller/Favorite.pm
Expand Up @@ -43,7 +43,7 @@ sub leaderboard : Local : Args(0) {

my $data = $c->model('API::Favorite')->leaderboard( $c->req->page )->recv;
my @leaders
= @{ $data->{aggregations}->{leaderboard}->{terms} }[ 0 .. 99 ];
= @{ $data->{aggregations}->{leaderboard}->{buckets} }[ 0 .. 99 ];

$c->stash(
{
Expand Down

0 comments on commit ff192ab

Please sign in to comment.