diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-25 22:35:39 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-12-02 17:41:35 +0000 |
commit | 55412b79394ff1b1cabe368aed67fa8f68680ecc (patch) | |
tree | 33657093517818b8ba60f156484ec540f9c4af17 /bin/send-alerts | |
parent | 0c2a792b154e1b28528db887bbde80b19268b9fe (diff) |
Reduce use of FixMyStreet::App.
Command line scripts don't need a full blown app, just database.
Diffstat (limited to 'bin/send-alerts')
-rwxr-xr-x | bin/send-alerts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-alerts b/bin/send-alerts index 94f7d5509..b0040268a 100755 --- a/bin/send-alerts +++ b/bin/send-alerts @@ -21,10 +21,10 @@ use CGI; # XXX use CronFns; use mySociety::Config; -use FixMyStreet::App; +use FixMyStreet::DB; my $site = CronFns::site(mySociety::Config::get('BASE_URL')); CronFns::language($site); -FixMyStreet::App->model('DB::AlertType')->email_alerts(); +FixMyStreet::DB->resultset('AlertType')->email_alerts(); |