Skip to content

Commit 8733aa3

Browse files
committed
tickets - fix script
1 parent 406ef2b commit 8733aa3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/tickets.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
my $gh_graphql = Net::GitHub::V4->new(
3131
( $gh_token ? ( access_token => $gh_token ) : () ) );
3232

33-
my $es = MetaCPAN::ES->new( index => "cpan", type => "distribution" );
33+
my $es = MetaCPAN::ES->new( index => "distribution" );
3434
my $bulk = $es->bulk();
3535

3636
check_all_distributions();
@@ -43,7 +43,7 @@
4343

4444
# make sure all distributions have an entry
4545
sub check_all_distributions () {
46-
my $es_release = MetaCPAN::ES->new( type => "release" );
46+
my $es_release = MetaCPAN::ES->new( index => "release" );
4747
my $scroll_release = $es_release->scroll(
4848
body => {
4949
query => {
@@ -123,7 +123,7 @@ ($d)
123123
sub index_github_bugs () {
124124
log_debug {'Fetching GitHub issues'};
125125

126-
my $es_release = MetaCPAN::ES->new( type => "release" );
126+
my $es_release = MetaCPAN::ES->new( index => "release" );
127127
my $scroll_release = $es_release->scroll(
128128
body => {
129129
query => {

0 commit comments

Comments
 (0)