db/API.js: require() Changeset library at top of file

Introduced with d246a191c6 ("Added option to restore revisions #1791") on
2014-11-08.
This commit is contained in:
muxator 2019-03-07 00:39:41 +01:00
parent 06756e49ee
commit cc23bd18a4

View file

@ -19,6 +19,7 @@
*/
var ERR = require("async-stacktrace");
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var customError = require("../utils/customError");
var padManager = require("./PadManager");
var padMessageHandler = require("../handler/PadMessageHandler");
@ -739,8 +740,6 @@ exports.deletePad = function(padID, callback)
*/
exports.restoreRevision = function (padID, rev, callback)
{
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
//check if rev is a number
if (rev !== undefined && typeof rev != "number")
{