mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
fix(backend): Update Notion page indexing log message to clarify sharing requirements and adjust return value for no pages found
This commit is contained in:
parent
33316fa6db
commit
b3f553802c
1 changed files with 3 additions and 2 deletions
|
|
@ -190,12 +190,13 @@ async def index_notion_pages(
|
|||
if not pages:
|
||||
await task_logger.log_task_success(
|
||||
log_entry,
|
||||
f"No Notion pages found for connector {connector_id}",
|
||||
f"No Notion pages found for connector {connector_id}. "
|
||||
"Ensure pages are shared with the Notion integration.",
|
||||
{"pages_found": 0},
|
||||
)
|
||||
logger.info("No Notion pages found to index")
|
||||
await notion_client.close()
|
||||
return 0, "No Notion pages found"
|
||||
return 0, None # Success with 0 pages, not an error
|
||||
|
||||
# Track the number of documents indexed
|
||||
documents_indexed = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue