Shorten name of broadcast utility function

This is doing more than just validating and updating an is about to
do even more. Saying "update" is broad enough to cover the others.
This commit is contained in:
Ben Thorner
2022-04-05 11:35:33 +01:00
parent 3b705a780a
commit c7c5793da4
5 changed files with 32 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ from app.models import (
)
def validate_and_update_broadcast_message_status(broadcast_message, new_status, updating_user=None, api_key_id=None):
def update_broadcast_message_status(broadcast_message, new_status, updating_user=None, api_key_id=None):
_validate_broadcast_update(broadcast_message, new_status, updating_user)
if new_status == BroadcastStatusType.BROADCASTING: