Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass missing params to reverse_dependencies
Added the missing page, page_size & sort params passed from the
endpoint to the querying method.

GH#736
  • Loading branch information
mickeyn committed Nov 1, 2017
1 parent 15c18db commit 6949816
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MetaCPAN/Server/Controller/ReverseDependencies.pm
Expand Up @@ -14,7 +14,10 @@ with 'MetaCPAN::Server::Role::JSONP';
sub dist : Path('dist') : Args(1) {
my ( $self, $c, $dist ) = @_;
$c->stash_or_detach(
$c->model('CPAN::Release')->reverse_dependencies($dist) );
$c->model('CPAN::Release')->reverse_dependencies(
$dist, @{ $c->req->params }{qw< page page_size sort >}
)
);
}

sub module : Path('module') : Args(1) {
Expand Down

0 comments on commit 6949816

Please sign in to comment.