summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-28 12:00:02 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-28 12:00:02 +0100
commit6c7454eb49aef9e7393a766a69cbae6eda0cbfd9 (patch)
treea1a3bd9c9517e21df4a4b9cde9cf5da3e16794cb
parentc73f4f17b9d02e952110ee8d9849b6e2293569d7 (diff)
Fix web interface
-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
}
};