Skip to content

Commit e8be691

Browse files
committed
Fix some naming in Permission script.
1 parent 12ee368 commit e8be691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MetaCPAN/Script/Permission.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ sub index_permissions {
2929

3030
my $file_path = $self->cpan . '/modules/06perms.txt';
3131
my $pp = PAUSE::Permissions->new( path => $file_path );
32-
my $type = $self->index->type('permissions');
32+
my $type = $self->index->type('permission');
3333
my $bulk = $self->model->bulk( size => 100 );
3434

3535
my $iterator = $pp->module_iterator();
3636
while ( my $mp = $iterator->next_module ) {
37-
my $put = { name => $mp->name };
37+
my $put = { module => $mp->name };
3838
$put->{owner} = $mp->owner if $mp->owner;
3939
$put->{co_maintainers} = $mp->co_maintainers if $mp->co_maintainers;
4040
$bulk->put( $type->new_document($put) );

0 commit comments

Comments
 (0)