mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-19 12:44:58 -04:00
Fixed ueberdb2 build. (#6533)
This commit is contained in:
parent
2f41b1b278
commit
8a1a03eca1
4 changed files with 336 additions and 181 deletions
|
@ -26,7 +26,7 @@ const db = require('../db/DB');
|
|||
const hooks = require('../../static/js/pluginfw/hooks');
|
||||
import log4js from 'log4js';
|
||||
const supportedElems = require('../../static/js/contentcollector').supportedElems;
|
||||
import ueberdb from 'ueberdb2';
|
||||
import {Database} from 'ueberdb2';
|
||||
|
||||
const logger = log4js.getLogger('ImportEtherpad');
|
||||
|
||||
|
@ -56,7 +56,7 @@ exports.setPadRaw = async (padId: string, r: string, authorId = '') => {
|
|||
|
||||
const data = new Map();
|
||||
const existingAuthors = new Set();
|
||||
const padDb = new ueberdb.Database('memory', {data});
|
||||
const padDb = new Database('memory', {data});
|
||||
await padDb.init();
|
||||
try {
|
||||
const processRecord = async (key:string, value: null|{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue