diff --git a/api/chalicelib/core/tenants.py b/api/chalicelib/core/tenants.py index 35cd350bc..81ec179a0 100644 --- a/api/chalicelib/core/tenants.py +++ b/api/chalicelib/core/tenants.py @@ -12,7 +12,7 @@ def get_by_tenant_id(tenant_id): '{license.EDITION}' AS edition, openreplay_version() AS version_number, tenants.opt_out, - scope + scope_state FROM public.tenants LIMIT 1;""", {"tenantId": tenant_id}) diff --git a/ee/api/chalicelib/core/tenants.py b/ee/api/chalicelib/core/tenants.py index 1340519e0..ca2d59dde 100644 --- a/ee/api/chalicelib/core/tenants.py +++ b/ee/api/chalicelib/core/tenants.py @@ -32,7 +32,7 @@ def get_by_tenant_id(tenant_id): openreplay_version() AS version_number, tenants.opt_out, tenants.tenant_key, - scope + scope_state FROM public.tenants WHERE tenants.tenant_id = %(tenantId)s AND tenants.deleted_at ISNULL