mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 18:28:25 -04:00
allow self approval on development
This commit is contained in:
@@ -209,7 +209,7 @@ def _create_broadcast_event(broadcast_message):
|
|||||||
|
|
||||||
dao_save_object(event)
|
dao_save_object(event)
|
||||||
|
|
||||||
if not broadcast_message.stubbed or current_app.config['NOTIFY_ENVIRONMENT'] == 'preview':
|
if not broadcast_message.stubbed or current_app.config['NOTIFY_ENVIRONMENT'] in ['preview', 'development']:
|
||||||
send_broadcast_event.apply_async(
|
send_broadcast_event.apply_async(
|
||||||
kwargs={'broadcast_event_id': str(event.id)},
|
kwargs={'broadcast_event_id': str(event.id)},
|
||||||
queue=QueueNames.BROADCASTS
|
queue=QueueNames.BROADCASTS
|
||||||
|
|||||||
Reference in New Issue
Block a user