feat: text collecion auto save for a txt file (#4924)

This commit is contained in:
Archer
2025-05-29 17:57:27 +08:00
committed by GitHub
parent 05c7ba4483
commit 0f866fc552
9 changed files with 76 additions and 10 deletions

View File

@@ -223,7 +223,7 @@ export const readFileContentFromMongo = async ({
rawText: string;
filename: string;
}> => {
const bufferId = `${fileId}-${customPdfParse}`;
const bufferId = `${String(fileId)}-${customPdfParse}`;
// read buffer
const fileBuffer = await getRawTextBuffer(bufferId);
if (fileBuffer) {