Skip to content
Snippets Groups Projects
Unverified Commit 2914c09d authored by Tobias Landenberger's avatar Tobias Landenberger Committed by GitHub
Browse files

fix: adjust return type of addDocuments in case of no additions (#353)

parent 6e72519c
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ const Document = { ...@@ -36,7 +36,7 @@ const Document = {
addDocuments: async function (workspace, additions = []) { addDocuments: async function (workspace, additions = []) {
const VectorDb = getVectorDbClass(); const VectorDb = getVectorDbClass();
if (additions.length === 0) return; if (additions.length === 0) return { failed: [], embedded: [] };
const embedded = []; const embedded = [];
const failedToEmbed = []; const failedToEmbed = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment