Skip to content

Commit

Permalink
when 'fields' is passed to the scroller, we will have the results und…
Browse files Browse the repository at this point in the history
…er a different key
  • Loading branch information
mickeyn committed Apr 15, 2014
1 parent 43a688f commit 04ce2b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Client/ResultSet.pm
Expand Up @@ -47,7 +47,8 @@ sub next {
or return;

my $class = 'MetaCPAN::Client::' . ucfirst $self->type;
return $class->new_from_request( $result->{'_source'} );

return $class->new_from_request( $result->{'_source'} || $result->{'fields'} );
}


Expand Down

0 comments on commit 04ce2b6

Please sign in to comment.