We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ee368 commit e8be691Copy full SHA for e8be691
lib/MetaCPAN/Script/Permission.pm
@@ -29,12 +29,12 @@ sub index_permissions {
29
30
my $file_path = $self->cpan . '/modules/06perms.txt';
31
my $pp = PAUSE::Permissions->new( path => $file_path );
32
- my $type = $self->index->type('permissions');
+ my $type = $self->index->type('permission');
33
my $bulk = $self->model->bulk( size => 100 );
34
35
my $iterator = $pp->module_iterator();
36
while ( my $mp = $iterator->next_module ) {
37
- my $put = { name => $mp->name };
+ my $put = { module => $mp->name };
38
$put->{owner} = $mp->owner if $mp->owner;
39
$put->{co_maintainers} = $mp->co_maintainers if $mp->co_maintainers;
40
$bulk->put( $type->new_document($put) );
0 commit comments