diff --git a/api/chalicelib/core/users.py b/api/chalicelib/core/users.py index 6762d9a6f..0ea8ed594 100644 --- a/api/chalicelib/core/users.py +++ b/api/chalicelib/core/users.py @@ -168,7 +168,7 @@ def update(tenant_id, user_id, changes): {"user_id": user_id, **changes}) ) - return helper.dict_to_camel_case(cur.fetchone()) + return get(user_id=user_id, tenant_id=tenant_id) def create_member(tenant_id, user_id, data, background_tasks: BackgroundTasks): diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index 9201350e9..ae998f83f 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -199,7 +199,7 @@ def update(tenant_id, user_id, changes): {"tenant_id": tenant_id, "user_id": user_id, **changes}) ) - return helper.dict_to_camel_case(cur.fetchone()) + return get(user_id=user_id, tenant_id=tenant_id) def create_member(tenant_id, user_id, data, background_tasks: BackgroundTasks):