Fixed get_by_id type error in PSQL impl

This commit is contained in:
jofoks
2025-03-17 17:32:54 -07:00
parent 15b817c0d6
commit 54e4a31aa6
2 changed files with 2 additions and 4 deletions

View File

@@ -1473,8 +1473,7 @@ class LightRAG:
"""
try:
# 1. Get the document status and related data
doc_status = await self.doc_status.get_by_id(doc_id)
if not doc_status:
if not await self.doc_status.get_by_id(doc_id):
logger.warning(f"Document {doc_id} not found")
return