From 4a0e5e26de8a516315c814d17f18dd3a88477c3e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 15:52:22 -0400 Subject: [PATCH] Fixing bug with next in /bot --- Client/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/app.js b/Client/app.js index 092e9ff..4b6dc73 100644 --- a/Client/app.js +++ b/Client/app.js @@ -54,7 +54,7 @@ app.use('/', indexRouter); // Discord bot control route app.use('/bot', (res, req, next) => { req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream - next(res, req); + next(); }, botRouter); // Local client control route