mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-21 03:40:52 +02:00
chore: fixing the human readable confluence url fetch baseUrl
This commit is contained in:
parent
0fb5fa29ad
commit
2da4328c93
@ -102,14 +102,13 @@ async function loadConfluence({ pageUrl, username, accessToken }) {
|
||||
const outFolderPath =
|
||||
process.env.NODE_ENV === "development"
|
||||
? path.resolve(
|
||||
__dirname,
|
||||
`../../../../server/storage/documents/${outFolder}`
|
||||
)
|
||||
__dirname,
|
||||
`../../../../server/storage/documents/${outFolder}`
|
||||
)
|
||||
: path.resolve(process.env.STORAGE_DIR, `documents/${outFolder}`);
|
||||
|
||||
if (!fs.existsSync(outFolderPath)) {
|
||||
if (!fs.existsSync(outFolderPath))
|
||||
fs.mkdirSync(outFolderPath, { recursive: true });
|
||||
}
|
||||
|
||||
docs.forEach((doc) => {
|
||||
if (!doc.pageContent) return;
|
||||
|
Loading…
Reference in New Issue
Block a user