aboutsummaryrefslogtreecommitdiffstats
path: root/bin/zurich
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-10 12:34:16 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-10 12:34:16 +0100
commiteda7a2d88e13a89e22843203cf4f749c8679b4d7 (patch)
tree682568bc6f46d262e5755268ac65238af4562b52 /bin/zurich
parentb862ad1300116978f98eae9a079a22d49fc4f85e (diff)
parentdf1494f5a9de03c80764adf6108cbf699f547459 (diff)
Merge branch '1244-corps-translatable-body-names'
Diffstat (limited to 'bin/zurich')
-rwxr-xr-xbin/zurich/overdue-alert4
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,
{