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

@@ -16,7 +16,7 @@ function getGuilds(req) {
/**
* Get Status of the discord process
*/
exports.getStatus = (res, req) => {
exports.getStatus = (req, res) => {
log.INFO("Getting the status of the bot");
guildIds = getGuilds(req);
log.DEBUG("Guild IDs: ", guildIds);
@@ -34,7 +34,7 @@ exports.getStatus = (res, req) => {
/**
* Start the bot and join the server and preset specified
*/
exports.joinServer = (res, req) => {
exports.joinServer = (req, res) => {
const channelID = req.body.channelID;
const presetName = req.body.presetName;
@@ -48,7 +48,7 @@ exports.joinServer = (res, req) => {
/**
* Leaves the server if it's in one
*/
exports.leaveServer = (res, req) => {
exports.leaveServer = (req, res) => {
leave({guildID: guildID, callback: (response) => {
return res.sendStatus(202);
}});