aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-11-08 09:48:50 +0000
committerDave Arter <davea@mysociety.org>2017-11-08 13:05:04 +0000
commit1b6dca6afd96f508f93f77216c2afb7e6f8945c7 (patch)
tree2ffdbe321dc5bd46ef95956db0845b1b4d0b13b4 /bin
parent48f2f8035742c9807a91f2fd475a5c17a5aaa52a (diff)
[Oxfordshire] Clearly mark RDI emails if sent from staging
Fixes mysociety/fixmystreetforcouncils#251
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oxfordshire/send-rdi-emails8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/oxfordshire/send-rdi-emails b/bin/oxfordshire/send-rdi-emails
index 801c1a889..9cc3e5502 100755
--- a/bin/oxfordshire/send-rdi-emails
+++ b/bin/oxfordshire/send-rdi-emails
@@ -40,6 +40,12 @@ foreach my $inspector (@inspectors) {
user => $inspector,
mark_as_processed => 1,
};
+ my $email_params = {
+ start_date => $start_date,
+ end_date => $end_date,
+ user => $inspector,
+ staging_site => FixMyStreet->config('STAGING_SITE'),
+ };
my $rdi = FixMyStreet::Integrations::ExorRDI->new($params);
try {
my $hdrs = {
@@ -58,7 +64,7 @@ foreach my $inspector (@inspectors) {
my $result = FixMyStreet::Email::send_cron(
FixMyStreet::DB->schema,
- "rdi.txt", $params, $hdrs,
+ "rdi.txt", $email_params, $hdrs,
undef, 0, $cobrand,
);
if ($result) {