diff --git a/pages/api/v1/bots/voted/[botID].ts b/pages/api/v1/bots/voted/[botID].ts index 4c7ac17..ca19d42 100644 --- a/pages/api/v1/bots/voted/[botID].ts +++ b/pages/api/v1/bots/voted/[botID].ts @@ -11,7 +11,7 @@ const BotVoted = RequestHandler() if(!bot) return ResponseWrapper(res, { code: 401, version: 1 }) if(req.query.botID !== bot) return ResponseWrapper(res, { code: 403, version: 1 }) const userID = await Yup.string().required().validate(req.query.id).then(el => el).catch(() => null) - if(!userID) return ResponseWrapper(res, { code: 400, version: 1 }) + if(!userID) return ResponseWrapper(res, { code: 400, version: 1 }) const result = await get.botVote(userID, bot) return res.json({ code: 200, voted: +new Date() < result + VOTE_COOLDOWN }) })