mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
replaceing AttributePoolFactory by AttributePool
This commit is contained in:
parent
cccd8a923c
commit
8eb43a3ebf
11 changed files with 90 additions and 89 deletions
|
@ -6,7 +6,7 @@ var mysql = require("mysql");
|
|||
var async = require("async");
|
||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var AttributePoolFactory = require("ep_etherpad-lite/static/js/AttributePoolFactory");
|
||||
var AttributePool = require("ep_etherpad-lite/static/js/AttributePool");
|
||||
|
||||
var settingsFile = process.argv[2];
|
||||
var sqlOutputFile = process.argv[3];
|
||||
|
@ -384,7 +384,7 @@ function convertPad(padId, callback)
|
|||
}
|
||||
|
||||
//generate the latest atext
|
||||
var fullAPool = AttributePoolFactory.createAttributePool().fromJsonable(apool);
|
||||
var fullAPool = (new AttributePool()).fromJsonable(apool);
|
||||
var keyRev = Math.floor(padmeta.head / padmeta.keyRevInterval) * padmeta.keyRevInterval;
|
||||
var atext = changesetsMeta[keyRev].atext;
|
||||
var curRev = keyRev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue