Skip to content

Commit

Permalink
Merge pull request #727 from metacpan/mickey/favorite_agg_by_distribu…
Browse files Browse the repository at this point in the history
…tions_optional_user_param

favorite/agg_by_distributions: 'user' --> optional param
  • Loading branch information
mickeyn committed Jul 27, 2017
2 parents 1a472ad + 7b6608e commit d07a601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Favorite.pm
Expand Up @@ -79,7 +79,7 @@ sub agg_by_distributions : Path('agg_by_distributions') : Args(0) {
my ( $self, $c ) = @_;

my $distributions = $c->read_param('distribution');
my $user = $c->read_param('user');
my $user = $c->req->param('user'); # optional
my $data
= $self->model($c)->agg_by_distributions( $distributions, $user );

Expand Down

0 comments on commit d07a601

Please sign in to comment.