aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/web.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/web.js b/lib/web.js
index 9d77707..c777360 100644
--- a/lib/web.js
+++ b/lib/web.js
@@ -55,15 +55,15 @@ function handleConvert(request, response, next) {
var converter = new mammoth.Converter(mammoth.standardOptions);
var uploadedDocument = request.files.document;
- var documentPath = uploadedDocument.path
+ var documentPath = uploadedDocument.path;
- converter.convertToHtml(documentPath)
+ converter.convertToHtml({path: documentPath})
.then(function(result) {
request.template = {
name: "convert.html",
values: {
documentName: uploadedDocument.name,
- documentHtml: result.html,
+ documentHtml: result.value,
messages: result.messages
}
};