From bd784224b9d2581eecf145571b055eade150fa27 Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Fri, 14 Oct 2016 15:28:27 +0300 Subject: [PATCH] changeshistory -> history --- web/documentserver-example/nodejs/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/documentserver-example/nodejs/app.js b/web/documentserver-example/nodejs/app.js index 444566d8..b5d081b3 100644 --- a/web/documentserver-example/nodejs/app.js +++ b/web/documentserver-example/nodejs/app.js @@ -324,10 +324,10 @@ app.post("/track", function (req, res) { fileSystem.writeFileSync(path_changes, diffZip.getBody()); } - var changeshistory = body.changeshistory; + var changeshistory = body.history || body.changeshistory; if (changeshistory) { var path_changes_json = docManager.changesPath(fileName, userAddress, version); - fileSystem.writeFileSync(path_changes_json, body.changeshistory); + fileSystem.writeFileSync(path_changes_json, changeshistory); } var path_key = docManager.keyPath(fileName, userAddress, version);