realm_settings: Remove 'enable_spectator_access' from update_fields.

In 'do_change_realm_plan_type' function we use 'do_set_realm_property'
to set 'enable_spectator_access' to False.

There is no need to again update that field.

This change was included in d2f2fbf6b9.
This commit is contained in:
Prakhar Pratyush 2024-10-03 19:09:36 +05:30 committed by Tim Abbott
parent d3987f611c
commit 276648ef87
1 changed files with 1 additions and 7 deletions

View File

@ -784,13 +784,7 @@ def do_change_realm_plan_type(
update_first_visible_message_id(realm)
realm.save(
update_fields=[
"_max_invites",
"enable_spectator_access",
"message_visibility_limit",
]
)
realm.save(update_fields=["_max_invites", "message_visibility_limit"])
event = {
"type": "realm",