diff options
-rwxr-xr-x | bin/send-reports | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/send-reports b/bin/send-reports index b2820b750..648e83192 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -137,7 +137,7 @@ while (my $row = $unsent->next) { $h{category} = 'Customer Services' if $h{category} eq 'Other'; } elsif ($areas_info->{$council}->{type} eq 'LBO') { # London $send_web = 'london'; - } elsif ( my $endpoint = FixMyStreet::App->model("DB::Open311conf")->find( { area_id => $council } ) ) { + } elsif ( my $endpoint = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $council, endpoint => { '!=', '' } } )->first ) { push @open311_councils, $endpoint; $send_web = 'open311'; } else { |