Merge pull request #1107 from JoramMillenaar/fix--psql-return-type
Fixed get_by_id type error in PSQL impl
This commit is contained in:
@@ -1544,8 +1544,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
|
||||
|
||||
|
Reference in New Issue
Block a user