mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 16:31:15 -05:00
It is possible that, among the references Environment Agency give us for which broadcast to cancel, there could be references for older, already expired broadcasts. This would be the case if someone cancelled a broadcast in Notify, then issued and try to re-cancel another broadcast to the same area. The Flood Warning Service has no way of knowing that the first broadcast has been cancelled in Notify already, so it would add the reference to the list of things to be cancelled. We can avoid this from happening by filtering-out already-cancelled and expired broadcasts before looking up which one should be cancelled.
3.4 KiB
3.4 KiB