diff --git a/src/node/db/API.js b/src/node/db/API.js index 3a5460524..a36f043b0 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -740,7 +740,6 @@ exports.deletePad = function(padID, callback) 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") @@ -830,7 +829,7 @@ exports.restoreRevision = function (padID, rev, callback) //append the changeset pad.appendRevision(changeset); // - padMessage.updatePadClients(pad, function () + padMessageHandler.updatePadClients(pad, function () { }); callback(null, null);