mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
remove MCP-mode skip from Notion indexer
This commit is contained in:
parent
978a8e2e07
commit
e02fbbef6c
1 changed files with 0 additions and 12 deletions
|
|
@ -129,18 +129,6 @@ async def index_notion_pages(
|
|||
f"Connector with ID {connector_id} not found or is not a Notion connector",
|
||||
)
|
||||
|
||||
if (connector.config or {}).get("mcp_mode"):
|
||||
msg = (
|
||||
f"Connector {connector_id} is an MCP-mode connector. "
|
||||
"Background indexing is not supported for MCP connectors — "
|
||||
"use a regular Notion connector for indexing."
|
||||
)
|
||||
logger.info(msg)
|
||||
await task_logger.log_task_completion(
|
||||
log_entry, msg, {"skipped": True, "reason": "mcp_mode"}
|
||||
)
|
||||
return 0, 0, None
|
||||
|
||||
if not connector.config.get("access_token") and not connector.config.get(
|
||||
"NOTION_INTEGRATION_TOKEN"
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue