Accidentally set the wrong variable for the device ID

This commit is contained in:
Logan Cusano
2023-06-03 15:32:08 -04:00
parent 43d60a748b
commit a298be40d5

View File

@@ -25,9 +25,9 @@ exports.getStatus = (req, res) => {
*/
exports.joinServer = async (req, res) => {
if (!req.body.clientId || !req.body.channelId) return res.send("500").json({"message": "You must include the client ID (discord token), channel ID (The discord ID of the channel to connect to)"});
const deviceId = req.body.deviceId;
const deviceId = process.env.AUDIO_DEVICE_ID;
const channelId = req.body.channelId;
const clientId = process.env.AUDIO_DEVICE_ID;
const clientId = req.body.clientId;
const presetName = req.body.presetName;
const NGThreshold = req.body.NGThreshold ?? 50