whoops
This commit is contained in:
parent
2d8d420795
commit
206cf431f7
|
@ -259,11 +259,11 @@ exports.channel = async (ws, req) => {
|
||||||
|
|
||||||
exports.addAutodownload = async (req, res) => {
|
exports.addAutodownload = async (req, res) => {
|
||||||
const confirm = await captcha.checkCaptcha(req.query.captcha)
|
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)
|
const channelId = await validate.validateChannelInput(req.query.url)
|
||||||
if (channelId.fail) {
|
if (channelId.fail) {
|
||||||
res.status(500).send(channelId.message)
|
return res.status(500).send(channelId.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
const already = await prisma.autodownload.findFirst({
|
const already = await prisma.autodownload.findFirst({
|
||||||
|
|
Loading…
Reference in New Issue