diff --git a/api/chalicelib/core/scope.py b/api/chalicelib/core/scope.py index f2d013cb3..28424b334 100644 --- a/api/chalicelib/core/scope.py +++ b/api/chalicelib/core/scope.py @@ -12,7 +12,7 @@ def get_scope(tenant_id) -> int: query = cur.mogrify(f"""SELECT scope_state FROM public.tenants;""") cur.execute(query) - return helper.dict_to_camel_case(cur.fetchone())["scope_state"] + return cur.fetchone()["scope_state"] def update_scope(tenant_id, scope: int): diff --git a/ee/api/chalicelib/core/scope.py b/ee/api/chalicelib/core/scope.py index ce4c789e9..f8cb350d0 100644 --- a/ee/api/chalicelib/core/scope.py +++ b/ee/api/chalicelib/core/scope.py @@ -14,7 +14,7 @@ def get_scope(tenant_id) -> int: WHERE tenant_id=%(tenant_id)s;""", {"tenant_id": tenant_id}) cur.execute(query) - return helper.dict_to_camel_case(cur.fetchone())["scope_state"] + return cur.fetchone()["scope_state"] def update_scope(tenant_id, scope: int):