Fixing bug with next in /bot
This commit is contained in:
@@ -54,7 +54,7 @@ app.use('/', indexRouter);
|
|||||||
// Discord bot control route
|
// Discord bot control route
|
||||||
app.use('/bot', (res, req, next) => {
|
app.use('/bot', (res, req, next) => {
|
||||||
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
|
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
|
||||||
next(res, req);
|
next();
|
||||||
}, botRouter);
|
}, botRouter);
|
||||||
|
|
||||||
// Local client control route
|
// Local client control route
|
||||||
|
|||||||
Reference in New Issue
Block a user