not working atm

This commit is contained in:
webzwo0i 2021-01-02 17:33:01 +01:00
parent 1702c7c34e
commit 4fbf0e8e2a
68 changed files with 238 additions and 9606 deletions

View file

@ -11,7 +11,7 @@ if (process.argv.length != 3) {
const padId = process.argv[2];
// load and initialize NPM;
const npm = require('../src/node_modules/npm');
const npm = require('npm');
npm.load({}, async () => {
try {
// initialize database
@ -20,7 +20,7 @@ npm.load({}, async () => {
await db.init();
// load modules
const Changeset = require('ep_etherpad-lite/static/js/Changeset');
const Changeset = require('../src/static/js/Changeset');
const padManager = require('../src/node/db/PadManager');
const exists = await padManager.doesPadExists(padId);