mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-15 02:34:48 -04:00
fix: express5
This commit is contained in:
parent
6208a04556
commit
6db14baee7
26 changed files with 200 additions and 207 deletions
|
@ -17,7 +17,7 @@ const performCheck = async () => {
|
|||
await db.init();
|
||||
console.log("Checking if " + padId + " exists")
|
||||
const padManager = require('ep_etherpad-lite/node/db/PadManager');
|
||||
if (!await padManager.doesPadExists(padId)) throw new Error('Pad does not exist');
|
||||
if (!(await padManager.doesPadExists(padId))) throw new Error('Pad does not exist');
|
||||
const pad = await padManager.getPad(padId);
|
||||
await pad.check();
|
||||
console.log('Finished checking pad.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue