diff --git a/src/utils/legacyModWrapper.js b/src/utils/legacyModWrapper.js index 29e5095..f621c80 100644 --- a/src/utils/legacyModWrapper.js +++ b/src/utils/legacyModWrapper.js @@ -84,7 +84,7 @@ module.exports = (legacyMod) => { res.redirect, // redirect parsePostData, // parsePostData req.authUser, // authUser - ); + )(); }; if (legacyModHandler.proxyCallback) { @@ -96,7 +96,7 @@ module.exports = (legacyMod) => { config, // configJSON logFacilities, // serverconsole next, // elseCallback - ); + )(); }; }