From 7d4dcdd2a6c8e77cffa1d6b0364300582f1c9215 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 15:53:45 +0200 Subject: [PATCH] Fix problems executing SVR.JS 2.x and 3.x mods, and server-side JavaScript --- src/utils/legacyModWrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 - ); + )(); }; }