summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
authorCristo <cristo.rabani@gmail.com>2014-11-12 19:50:43 +0100
committerCristo <cristo.rabani@gmail.com>2014-11-12 19:50:43 +0100
commitf59238fe58ac1d1a28896642a86f8483a0d524a3 (patch)
tree9af93ca32dad485d93caf4393d9ac5f84745f956 /src/node/db
parent24ac082cae6ad8842d3028a14ec9ecb8bbd47b9a (diff)
downloadetherpad-lite-f59238fe58ac1d1a28896642a86f8483a0d524a3.zip
Update API.js
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/API.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/db/API.js b/src/node/db/API.js
index d933f99e..2ba99f6a 100644
--- a/src/node/db/API.js
+++ b/src/node/db/API.js
@@ -587,6 +587,7 @@ exports.restoreRevision = function (padID, rev, callback)
{
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
+
//check if rev is a number
if (rev !== undefined && typeof rev != "number")
{
@@ -682,7 +683,6 @@ exports.restoreRevision = function (padID, rev, callback)
});
callback(null, null);
});
-
});
};