Skip to content

Commit

Permalink
Merge pull request #1094 from julep-ai/x/list-docs
Browse files Browse the repository at this point in the history
fix(agents-api): fix list docs
  • Loading branch information
Ahmad-mtos authored Jan 27, 2025
2 parents dbde7a8 + ba4ec16 commit 1575f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions agents-api/agents_api/queries/docs/get_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
LEFT JOIN docs_embeddings e
ON d.doc_id = e.doc_id
AND e.embedding IS NOT NULL
AND d.index = e.index
WHERE d.developer_id = $1
AND d.doc_id = $2
GROUP BY
Expand Down
1 change: 1 addition & 0 deletions agents-api/agents_api/queries/docs/list_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
AND d.doc_id = doc_own.doc_id
LEFT JOIN docs_embeddings e
ON d.doc_id = e.doc_id
AND d.index = e.index
WHERE d.developer_id = $1
AND doc_own.owner_type = $3
AND doc_own.owner_id = $4
Expand Down

0 comments on commit 1575f87

Please sign in to comment.