Fixing bugs with imports and obj naming
This commit is contained in:
@@ -75,10 +75,10 @@ exports.joinServer = (req, res) => {
|
||||
const presetName = req.body.presetName;
|
||||
const guildObj = getGuildFromChannel(channelId, req);
|
||||
|
||||
if (!channelId || !presetName || !guildId) return res.status(400).json({'message': "Request does not have all components to proceed"});
|
||||
if (!channelId || !presetName || !guildObj) return res.status(400).json({'message': "Request does not have all components to proceed"});
|
||||
|
||||
// join the sever
|
||||
join({guildID: guildId, guildObj: guildObj, channelID: channelId, callback: () => {
|
||||
join({guildID: guildObj.id, guildObj: guildObj, channelID: channelId, callback: () => {
|
||||
return req.sendStatus(202);
|
||||
}});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user