Navigation Menu

Skip to content

Commit

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

GH#736
  • Loading branch information
mickeyn committed Oct 3, 2017
1 parent 385e0e6 commit 1ca745c
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 1ca745c

Please sign in to comment.