Skip to content

Commit

Permalink
fix feed query (--> fixes test t/controller/feed.t)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 24, 2016
1 parent 6423589 commit f318f47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/MetaCPAN/Web/Controller/Feed.pm
Expand Up @@ -80,8 +80,10 @@ sub author : Local : Args(1) {
my $author_cv = $c->model('API::Author')->get($author);
my $releases_cv = $c->model('API::Release')->latest_by_author($author);

my $release_data
= [ map { $_->{fields} } @{ $releases_cv->recv->{hits}{hits} } ];
my $release_data = [
map { single_valued_arrayref_to_scalar($_) }
map { $_->{fields} } @{ $releases_cv->recv->{hits}{hits} }
];
my $author_info = $author_cv->recv;

my $faves_cv = $author_info->{user}
Expand Down

0 comments on commit f318f47

Please sign in to comment.