fix: Error attempting to import .docx files, closes #3455

This commit is contained in:
Tom Moor committed 2022-04-25 21:07:22 -07:00
1 parent 7436d4c5c1
commit ceebc922cf
1 file changed
+1 -1
+1 -1
View File
@@ -1288,7 +1288,7 @@ router.post("documents.import", auth(), async (ctx) => {
});
}
const content = await fs.readFile(file.path, "utf8");
const content = await fs.readFile(file.path);
const document = await sequelize.transaction(async (transaction) => {
const { text, title } = await documentImporter({
user,