mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Revert "Merge pull request #3125 from alphagov/revert-retry"
This reverts commit6b9a50beff, reversing changes made to33f93dfea2.
This commit is contained in:
@@ -56,7 +56,7 @@ def _update_broadcast_message(broadcast_message, new_status, updating_user):
|
||||
f'User {updating_user.id} cannot approve their own broadcast_message {broadcast_message.id}',
|
||||
status_code=400
|
||||
)
|
||||
elif not broadcast_message.areas:
|
||||
elif len(broadcast_message.areas['simple_polygons']) == 0:
|
||||
raise InvalidRequest(
|
||||
f'broadcast_message {broadcast_message.id} has no selected areas and so cannot be broadcasted.',
|
||||
status_code=400
|
||||
|
||||
Reference in New Issue
Block a user