From e7fccfda14f80492d62983de2c9b27ad2e28b28c Mon Sep 17 00:00:00 2001 From: KShivendu Date: Thu, 3 Aug 2023 14:19:27 +0530 Subject: [PATCH] chores: Improve comments --- .../recipe/dashboard/api/userdetails/user_sessions_get.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supertokens_python/recipe/dashboard/api/userdetails/user_sessions_get.py b/supertokens_python/recipe/dashboard/api/userdetails/user_sessions_get.py index cffd8933c..47e4b36cf 100644 --- a/supertokens_python/recipe/dashboard/api/userdetails/user_sessions_get.py +++ b/supertokens_python/recipe/dashboard/api/userdetails/user_sessions_get.py @@ -23,8 +23,8 @@ async def handle_sessions_get( if user_id is None: raise_bad_input_exception("Missing required parameter 'userId'") - # Not passing tenant_id because we want to get all the sessions - # across all the tenants for this user. + # Passing tenant id as None sets fetch_across_all_tenants to True + # which is what we want here. session_handles = await get_all_session_handles_for_user( user_id, None, user_context )