Fixes: No redirect after doc import

This commit is contained in:
Tom Moor
2019-01-26 17:28:08 +00:00
parent e7e94cdef2
commit b46db25553
3 changed files with 14 additions and 18 deletions

View File

@ -27,9 +27,9 @@ const importFile = async ({
if (documentId) data.parentDocument = documentId;
const document = new Document(data, documents);
let document = new Document(data, documents);
try {
await document.save({ publish: true });
document = await document.save({ publish: true });
resolve(document);
} catch (err) {
reject(err);