Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
populate_billing_realms: Delete existing remote realms.
Aman Agrawalc49fc8c6fe17
diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.pyindex 22b1fda330e..3de71b11e69 100644--- a/zilencer/management/commands/populate_billing_realms.py+++ b/zilencer/management/commands/populate_billing_realms.py@@ -461,6 +461,10 @@ def populate_remote_server(customer_profile: CustomerProfile) -> Dict[str, str]:def populate_remote_realms(customer_profile: CustomerProfile) -> Dict[str, str]:+ # Delete existing remote realm.+ RemoteRealm.objects.filter(name=customer_profile.unique_id).delete()+ flush_cache(None)+local_realm = populate_realm(customer_profile)assert local_realm is not None