Make get_browser_state async (#1775)

This commit is contained in:
Maksim Ivanov
2025-02-16 13:10:00 +01:00
committed by GitHub
parent 4ba32fa7ee
commit 63a37cf799
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class PersistentSessionsManager:
"""Get all active sessions for an organization."""
return await self.database.get_active_persistent_browser_sessions(organization_id)
def get_browser_state(self, session_id: str) -> BrowserState | None:
async def get_browser_state(self, session_id: str) -> BrowserState | None:
"""Get a specific browser session's state by session ID."""
browser_session = self._browser_sessions.get(session_id)
return browser_session.browser_state if browser_session else None