fix: express5

This commit is contained in:
SamTV12345 2025-04-29 19:44:56 +02:00
parent 6208a04556
commit 6db14baee7
26 changed files with 200 additions and 207 deletions

View file

@ -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.');