From 8cf0c7081fd8b91e73978006298c193dc655c8d5 Mon Sep 17 00:00:00 2001 From: yatmesh Date: Mon, 23 Jun 2025 12:14:25 +0530 Subject: [PATCH] (20250623) - Fixed minor issues and changes key for get session info --- api/helpers/user/session.py | 16 ++++++++-------- api/main.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/helpers/user/session.py b/api/helpers/user/session.py index 5438045..7e61b9d 100644 --- a/api/helpers/user/session.py +++ b/api/helpers/user/session.py @@ -94,14 +94,14 @@ async def get_session(session_token) -> CoreUserInfoModel: # Feed needed field into the core model: session_info = CoreUserInfoModel( - fullName = raw_info["value"]["full_name"], - role = raw_info["value"]["user_role"], - userId = raw_info["value"]["user_id"], - entityId = raw_info["value"]["entity_id"], - billingAccountId = raw_info["value"]["billing_account_id"], - departmentId = raw_info["value"]["department_id"], - branchId = raw_info["value"]["branch_id"], - industry = raw_info["value"]["industry"] + fullName = raw_info["full_name"], + role = raw_info["user_role"], + userId = raw_info["user_id"], + entityId = raw_info["entity_id"], + billingAccountId = raw_info["billing_account_id"], + departmentId = raw_info["department_id"], + branchId = raw_info["branch_id"], + industry = raw_info["industry"] ) # Done here: diff --git a/api/main.py b/api/main.py index 657bc3c..cbb3577 100644 --- a/api/main.py +++ b/api/main.py @@ -364,7 +364,7 @@ async def app_startup(**kwargs): ) current_app.module_cache = AsyncRedisCache( connection_string = script_cred["redisCache"]["funcReturn"]["sentinelJson"], - serializer = JSONSerializer(), + # serializer = JSONSerializer(), debug = enable_debugging, debug_prefix = "User Cache | " )