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

This commit is contained in:
Tom Moor
2022-04-25 21:07:22 -07:00
parent 7436d4c5c1
commit ceebc922cf

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,