fix: skip undefined confluence pageContent (#1383)

Refs: https://github.com/Mintplex-Labs/anything-llm/issues/1381

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
jazelly 2024-05-15 02:52:13 +09:30 committed by GitHub
parent 78e3e35d27
commit d71db22799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,8 @@ async function loadConfluence({ pageUrl, username, accessToken }) {
fs.mkdirSync(outFolderPath, { recursive: true });
docs.forEach((doc) => {
if (!doc.pageContent) return;
const data = {
id: v4(),
url: doc.metadata.url + ".page",