(20250623) - Fixed minor issues and changes key for get session info
This commit is contained in:
@@ -94,14 +94,14 @@ async def get_session(session_token) -> CoreUserInfoModel:
|
|||||||
|
|
||||||
# Feed needed field into the core model:
|
# Feed needed field into the core model:
|
||||||
session_info = CoreUserInfoModel(
|
session_info = CoreUserInfoModel(
|
||||||
fullName = raw_info["value"]["full_name"],
|
fullName = raw_info["full_name"],
|
||||||
role = raw_info["value"]["user_role"],
|
role = raw_info["user_role"],
|
||||||
userId = raw_info["value"]["user_id"],
|
userId = raw_info["user_id"],
|
||||||
entityId = raw_info["value"]["entity_id"],
|
entityId = raw_info["entity_id"],
|
||||||
billingAccountId = raw_info["value"]["billing_account_id"],
|
billingAccountId = raw_info["billing_account_id"],
|
||||||
departmentId = raw_info["value"]["department_id"],
|
departmentId = raw_info["department_id"],
|
||||||
branchId = raw_info["value"]["branch_id"],
|
branchId = raw_info["branch_id"],
|
||||||
industry = raw_info["value"]["industry"]
|
industry = raw_info["industry"]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Done here:
|
# Done here:
|
||||||
|
|||||||
+1
-1
@@ -364,7 +364,7 @@ async def app_startup(**kwargs):
|
|||||||
)
|
)
|
||||||
current_app.module_cache = AsyncRedisCache(
|
current_app.module_cache = AsyncRedisCache(
|
||||||
connection_string = script_cred["redisCache"]["funcReturn"]["sentinelJson"],
|
connection_string = script_cred["redisCache"]["funcReturn"]["sentinelJson"],
|
||||||
serializer = JSONSerializer(),
|
# serializer = JSONSerializer(),
|
||||||
debug = enable_debugging,
|
debug = enable_debugging,
|
||||||
debug_prefix = "User Cache | "
|
debug_prefix = "User Cache | "
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user