Skip to content

Commit

Permalink
send /author/by_user API requests as POST
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jul 18, 2017
1 parent c9c904a commit 89774f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/MetaCPAN/Web/Model/API/Favorite.pm
Expand Up @@ -102,8 +102,7 @@ sub get_plusser_authors {
my ( $self, $users ) = @_;
return Future->done( [] ) unless $users and @{$users};

$self->request( '/author/by_user', undef, { user => $users } )
->transform(
$self->request( '/author/by_user', { user => $users } )->transform(
done => sub {
my $res = shift;
return [] unless $res->{authors};
Expand All @@ -116,7 +115,7 @@ sub get_plusser_authors {
@{ $res->{authors} }
];
}
);
);
}

__PACKAGE__->meta->make_immutable;
Expand Down

0 comments on commit 89774f9

Please sign in to comment.