This commit is contained in:
unknown 2023-03-05 15:40:28 +01:00
parent 2d8d420795
commit 206cf431f7
1 changed files with 2 additions and 2 deletions

View File

@ -259,11 +259,11 @@ exports.channel = async (ws, req) => {
exports.addAutodownload = async (req, res) => {
const confirm = await captcha.checkCaptcha(req.query.captcha)
if (!confirm) res.status(500).send('You little goofy goober tried to mess with the captcha...')
if (!confirm) return res.status(500).send('You little goofy goober tried to mess with the captcha...')
const channelId = await validate.validateChannelInput(req.query.url)
if (channelId.fail) {
res.status(500).send(channelId.message)
return res.status(500).send(channelId.message)
}
const already = await prisma.autodownload.findFirst({