changeshistory -> history

This commit is contained in:
Alexander.Trofimov
2016-10-14 15:28:27 +03:00
parent 9bde32fbf8
commit bd784224b9

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.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);