Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Fix mismigrated plan type assertion.
Tim Abbottb8deb44a0550
diff --git a/zilencer/views.py b/zilencer/views.pyindex 36c9e91d930..e8bac0a18c1 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -768,7 +768,7 @@ def handle_customer_migration_from_server_to_realms(and server_plan.tier == CustomerPlan.TIER_SELF_HOSTED_LEGACYand server_plan.status == CustomerPlan.ACTIVE):- assert server.plan_type == RemoteZulipServer.PLAN_TYPE_SELF_MANAGED+ assert server.plan_type == RemoteZulipServer.PLAN_TYPE_SELF_MANAGED_LEGACYassert server_plan.end_date is not Noneremote_realms = RemoteRealm.objects.filter(uuid__in=realm_uuids, server=server, plan_type=RemoteRealm.PLAN_TYPE_SELF_MANAGED