Fixing small bugs

- Extra imports
- incorrect param placement
This commit is contained in:
Logan Cusano
2023-03-26 16:49:45 -04:00
parent e537ce8778
commit 2e8b699339
3 changed files with 6 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter);
// Discord bot control route
app.use('/bot', (res, req, next) => {
app.use('/bot', (req, res, next) => {
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
next();
}, botRouter);