Skip to content

Commit

Permalink
fix: adding fix for no session in integration route (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
brayn003 committed Mar 31, 2024
1 parent d473967 commit a564dea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/app/routes/integration_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ async def load_integration_session(integration_type: IntegrationType):
@router.get("/integrations/{integration_type}/sessions/default", responses={204: {"model": None}})
async def get_integration_session(integration_type: IntegrationType):
integration = IntegrationManager.get_integration(integration_type)
if integration is None:
raise HTTPException(status_code=404, detail="Integration not found")
integration_session = await IntegrationSessionManager.get_session(integration, "default")
return {"integration_session": integration_session}

Expand Down

0 comments on commit a564dea

Please sign in to comment.