mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	actions: Use transaction.atomic in do_change_tos_version.
This commit is contained in:
		@@ -4568,6 +4568,7 @@ def do_change_bot_owner(
 | 
			
		||||
    send_event(user_profile.realm, event, active_user_ids(user_profile.realm_id))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@transaction.atomic(durable=True)
 | 
			
		||||
def do_change_tos_version(user_profile: UserProfile, tos_version: str) -> None:
 | 
			
		||||
    user_profile.tos_version = tos_version
 | 
			
		||||
    user_profile.save(update_fields=["tos_version"])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user