simplify create session (#1849)

This commit is contained in:
Shuchang Zheng
2025-02-26 17:49:36 -08:00
committed by GitHub
parent 995d9461b5
commit ea924f9467
2 changed files with 4 additions and 58 deletions

View File

@@ -1327,7 +1327,7 @@ async def get_browser_sessions(
async def create_browser_session(
current_org: Organization = Depends(org_auth_service.get_current_org),
) -> BrowserSessionResponse:
browser_session, _ = await app.PERSISTENT_SESSIONS_MANAGER.create_session(current_org.organization_id)
browser_session = await app.PERSISTENT_SESSIONS_MANAGER.create_session(current_org.organization_id)
return BrowserSessionResponse.from_browser_session(browser_session)