db/API.js: reuse the already required padMessageHandler (2 of 2)

It was introduced on 2014-11-12 by commit 9d39c9591a ("update pad clients").
pull/3572/head
muxator 2019-03-07 00:14:49 +01:00
parent 72260b86de
commit 06756e49ee
1 changed files with 1 additions and 2 deletions

View File

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