From 206cf431f7b90dfd733ef646acd2e1591e994704 Mon Sep 17 00:00:00 2001 From: unknown <89595418+unknownsrc@users.noreply.github.com> Date: Sun, 5 Mar 2023 15:40:28 +0100 Subject: [PATCH] whoops --- controller/websocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/websocket.js b/controller/websocket.js index 8bfc583..8b616b1 100644 --- a/controller/websocket.js +++ b/controller/websocket.js @@ -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({