mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
only send zendesk P1 for alerts
we don't need to be re-notified when someone clicks cancel
This commit is contained in:
@@ -112,7 +112,10 @@ def send_broadcast_event(broadcast_event_id):
|
||||
|
||||
broadcast_event = dao_get_broadcast_event_by_id(broadcast_event_id)
|
||||
|
||||
if current_app.config['NOTIFY_ENVIRONMENT'] == 'live':
|
||||
if (
|
||||
current_app.config['NOTIFY_ENVIRONMENT'] == 'live' and
|
||||
broadcast_event.message_type == BroadcastEventMessageType.ALERT
|
||||
):
|
||||
broadcast_message = broadcast_event.broadcast_message
|
||||
# raise a P1 to alert team that broadcast is going out.
|
||||
message = '\n'.join([
|
||||
|
||||
Reference in New Issue
Block a user