Skip to content

Commit

Permalink
fixed missing 'level' value + test t/server/controller/changes.t
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 4, 2016
1 parent 6d8a097 commit bed83eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/MetaCPAN/Document/File.pm
Expand Up @@ -384,10 +384,11 @@ has a level of C<0>).
=cut

has level => (
is => 'ro',
isa => Int,
lazy => 1,
builder => '_build_level',
required => 1,
is => 'ro',
isa => Int,
lazy => 1,
builder => '_build_level',
);

sub _build_level {
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Changes.pm
Expand Up @@ -57,7 +57,7 @@ sub get : Chained('index') : PathPart('') : Args(2) {
{
and => [
{ term => { level => 0 } },
{ term => { directory => \0 } },
{ term => { directory => 0 } },
{
or => [
map {
Expand Down

0 comments on commit bed83eb

Please sign in to comment.