diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-13 09:51:00 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-08-09 17:03:48 +0100 |
commit | e00c75d7f19bc45879c254ea77dce32df825f3a7 (patch) | |
tree | 7fd42ffd93fa244f81a84d8a5ace4f7be03b81c7 /bin/zurich | |
parent | 46b9d8989d5ac2f8eedd196d11ceb4baf57728dd (diff) |
Move FixMyStreet::DB to FixMyStreet::DB::Schema.
Store a schema object on FixMyStreet::DB instead.
Diffstat (limited to 'bin/zurich')
-rwxr-xr-x | bin/zurich/overdue-alert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/zurich/overdue-alert b/bin/zurich/overdue-alert index 90e31df1c..f4fd0f4b7 100755 --- a/bin/zurich/overdue-alert +++ b/bin/zurich/overdue-alert @@ -38,7 +38,7 @@ loop_through( 'alert-overdue.txt', 0, 6, ['confirmed', 'planned'] ); sub loop_through { my ( $template, $include_parent, $days, $states ) = @_; - my $dtf = FixMyStreet::DB->storage->datetime_parser; + my $dtf = FixMyStreet::DB->schema->storage->datetime_parser; my $date_threshold = $dtf->format_datetime(FixMyStreet::Cobrand::Zurich::sub_days( $now, $days )); my $reports = FixMyStreet::DB->resultset("Problem")->search( { @@ -78,7 +78,7 @@ sub send_alert { } FixMyStreet::Email::send_cron( - FixMyStreet::DB->storage->schema, + FixMyStreet::DB->schema, $template, $h, { |