mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Await result for determining if user has entries
This commit is contained in:
parent
1a56344f12
commit
e62788ad79
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ async def extract_references_and_questions(
|
|||
if conversation_type == ConversationCommand.General:
|
||||
return compiled_references, inferred_queries, q
|
||||
|
||||
if not sync_to_async(EntryAdapters.user_has_entries)(user=user):
|
||||
if not await sync_to_async(EntryAdapters.user_has_entries)(user=user):
|
||||
logger.warning(
|
||||
"No content index loaded, so cannot extract references from knowledge base. Please configure your data sources and update the index to chat with your notes."
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue