Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
favorite.by_user: pass size parameter to query
  • Loading branch information
mickeyn committed May 31, 2017
1 parent aa7cc65 commit 369e5c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Server/Controller/Favorite.pm
Expand Up @@ -30,7 +30,8 @@ sub find : Path('') : Args(2) {

sub by_user : Path('by_user') : Args(1) {
my ( $self, $c, $user ) = @_;
my $data = $self->model($c)->raw->by_user($user);
my $size = $c->req->param('size') || 250;
my $data = $self->model($c)->raw->by_user( $user, $size );
$data or return;
$c->stash($data);
}
Expand Down

0 comments on commit 369e5c6

Please sign in to comment.