mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-02 12:22:40 +02:00
refactor: move Linear OAuth utils to connector, use httpx.AsyncClient
This commit is contained in:
parent
4b3d427e90
commit
f1a715e04e
4 changed files with 50 additions and 67 deletions
|
|
@ -23,7 +23,7 @@ from app.db import (
|
|||
User,
|
||||
get_async_session,
|
||||
)
|
||||
from app.connectors.linear_oauth import fetch_linear_organization_name
|
||||
from app.connectors.linear_connector import fetch_linear_organization_name
|
||||
from app.schemas.linear_auth_credentials import LinearAuthCredentialsBase
|
||||
from app.users import current_active_user
|
||||
from app.utils.connector_naming import check_duplicate_connector, generate_unique_connector_name
|
||||
|
|
@ -454,4 +454,4 @@ async def refresh_linear_token(
|
|||
logger.error(f"Failed to refresh Linear token: {e!s}", exc_info=True)
|
||||
raise HTTPException(
|
||||
status_code=500, detail=f"Failed to refresh Linear token: {e!s}"
|
||||
) from e
|
||||
) from e
|
||||
Loading…
Add table
Add a link
Reference in a new issue