diff --git a/server/models/documents.js b/server/models/documents.js index ab8d4a09..7dec1555 100644 --- a/server/models/documents.js +++ b/server/models/documents.js @@ -36,7 +36,7 @@ const Document = { addDocuments: async function (workspace, additions = []) { const VectorDb = getVectorDbClass(); - if (additions.length === 0) return; + if (additions.length === 0) return { failed: [], embedded: [] }; const embedded = []; const failedToEmbed = [];