summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorCristo <cristo.rabani@gmail.com>2014-11-08 01:39:27 +0100
committerCristo <cristo.rabani@gmail.com>2014-11-08 01:39:27 +0100
commitc33c6e085ec533056cb5bf75dc76350e9cdf03ba (patch)
tree2aec4f839c59b4acbbe0a64172a42f9aff4b3f8c /src/node/db
parentd246a191c6cc9a6e2d84451058e2252f7c552095 (diff)
downloadetherpad-lite-c33c6e085ec533056cb5bf75dc76350e9cdf03ba.zip
comment addded
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/API.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/node/db/API.js b/src/node/db/API.js
index 2aadc483..8ad6e2eb 100644
--- a/src/node/db/API.js
+++ b/src/node/db/API.js
@@ -575,7 +575,14 @@ exports.deletePad = function(padID, callback)
pad.remove(callback);
});
}
+/**
+ restoreRevision(padID, [rev]) Restores revision from past as new changeset
+
+ Example returns:
+ {code:0, message:"ok", data:null}
+ {code: 1, message:"padID does not exist", data: null}
+ */
exports.restoreRevision = function(padID, rev, callback)
{
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
@@ -668,7 +675,7 @@ exports.restoreRevision = function(padID, rev, callback)
//append the changeset
pad.appendRevision(changeset);
//
- callback(null, changeset);
+ callback(null, null);
});
});