Compare commits

..

2 Commits

Author SHA1 Message Date
e3635eb0f6 support new history 2016-10-14 17:12:00 +03:00
bd784224b9 changeshistory -> history 2016-10-14 15:28:27 +03:00

View File

@ -324,10 +324,10 @@ app.post("/track", function (req, res) {
fileSystem.writeFileSync(path_changes, diffZip.getBody());
}
var changeshistory = body.changeshistory;
var changeshistory = body.changeshistory || JSON.stringify(body.history);
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);