Guard KB sync on document_id; fix comment style

This commit is contained in:
CREDO23 2026-02-18 12:31:28 +02:00
parent 64a170efce
commit d28aed14b3
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ def create_update_notion_page_tool(
f"update_page result: {result.get('status')} - {result.get('message', '')}"
)
if result.get("status") == "success":
if result.get("status") == "success" and document_id is not None:
from app.services.notion import NotionKBSyncService
logger.info(f"Updating knowledge base for document {document_id}...")