fix: Import max length not correctly communicated on import (#5434)

This commit is contained in:
Tom Moor
2023-06-17 08:52:57 +01:00
committed by GitHub
parent 9d04d5ebd9
commit 9ef375d83c
6 changed files with 81 additions and 61 deletions

View File

@@ -1219,7 +1219,7 @@ router.post(
const content = await fs.readFile(file.filepath);
const document = await sequelize.transaction(async (transaction) => {
const { text, title } = await documentImporter({
const { text, state, title } = await documentImporter({
user,
fileName: file.originalFilename ?? file.newFilename,
mimeType: file.mimetype ?? "",
@@ -1232,6 +1232,7 @@ router.post(
source: "import",
title,
text,
state,
publish,
collectionId,
parentDocumentId,