fix: Handle emoji field in imported documents

closes #5810
This commit is contained in:
Tom Moor
2023-09-13 22:05:21 -04:00
parent ef22a5dc52
commit 7e17e82ac8
5 changed files with 29 additions and 25 deletions

View File

@@ -1249,7 +1249,7 @@ router.post(
}
const content = await fs.readFile(file.filepath);
const { text, state, title } = await documentImporter({
const { text, state, title, emoji } = await documentImporter({
user,
fileName: file.originalFilename ?? file.newFilename,
mimeType: file.mimetype ?? "",
@@ -1261,6 +1261,7 @@ router.post(
const document = await documentCreator({
source: "import",
title,
emoji,
text,
state,
publish,