Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
actions: Use transaction.atomic in do_change_tos_version.
Sahil Batra7c4415113514
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex a4a5158af8c..6f7c0c149f7 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -4568,6 +4568,7 @@ def do_change_bot_owner(send_event(user_profile.realm, event, active_user_ids(user_profile.realm_id))[email protected](durable=True)def do_change_tos_version(user_profile: UserProfile, tos_version: str) -> None:user_profile.tos_version = tos_versionuser_profile.save(update_fields=["tos_version"])