We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249d2a5 commit b67f7fbCopy full SHA for b67f7fb
perllib/FixMyStreet/App/Controller/Waste/Echo.pm
@@ -108,6 +108,15 @@ sub receive_echo_event_notification : Path('/waste/echo') : Args(0) {
108
$updates->suppress_alerts(1);
109
}
110
111
+ # If it's a cancellation update on a container request
112
+ # that is already cancelled, don't send an alert as
113
+ # we would have already sent one out for this.
114
+ if ($p->category eq 'Request new container'
115
+ && $request->{status} eq 'cancelled'
116
+ && $p->state eq 'cancelled') {
117
+ $updates->suppress_alerts(1);
118
+ }
119
+
120
my $comment = $updates->process_update($request, $p);
121
last;
122
0 commit comments