Skip to content

Commit

Permalink
Correct /reverse_dependencies/dist output
Browse files Browse the repository at this point in the history
To allow the template in WEB to read the data, the release info
needs to be passed with full _source data.
  • Loading branch information
mickeyn committed Jun 15, 2017
1 parent 322bbfa commit b4cb420
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/MetaCPAN/Document/Release.pm
Expand Up @@ -809,9 +809,7 @@ sub reverse_dependencies {
= $self->_get_depended_releases( $modules, $page, $page_size, $sort )
|| return;

my $data = [ map [ @{$_}{qw( name author date )} ], @{$depended} ];
single_valued_arrayref_to_scalar($data);
return +{ data => $data };
return +{ data => $depended };
}

sub _get_latest_release {
Expand Down

0 comments on commit b4cb420

Please sign in to comment.