Update api.pm (#2895)

avoid 404 error when calling this mode
This commit is contained in:
matoy 2021-06-21 14:24:27 +02:00 committed by GitHub
parent 373606456e
commit a1a0423e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ sub get_networks_connection_stats {
$timespan = 1 if ($timespan <= 0);
return $self->request_api(
endpoint => '/networks/' . $options{network_id} . '/connectionStats?timespan=' . $options{timespan},
endpoint => '/networks/' . $options{network_id},
hostname => $self->get_shard_hostname(network_id => $options{network_id}),
ignore_codes => { 400 => 1 }
);