diff options
-rw-r--r-- | perllib/Open311.pm | 5 | ||||
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm index 330f914ee..078263320 100644 --- a/perllib/Open311.pm +++ b/perllib/Open311.pm @@ -169,7 +169,10 @@ sub get_service_request_updates { my $start_date = shift; my $end_date = shift; - my $params = {}; + my $params = { + api_key => $self->api_key, + jurisdiction => $self->jurisdiction, + }; if ( $start_date || $end_date ) { return 0 unless $start_date && $end_date; diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index b36bbaa4c..b93dea82c 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -49,7 +49,10 @@ sub update_comments { my $requests = $open311->get_service_request_updates( @args ); - return 0 unless $open311->success; + unless ( $open311->success ) { + warn "Failed to fetch ServiceRquest Updates: " . $open311->error; + return 0; + } for my $request (@$requests) { my $request_id = $request->{service_request_id}; |