diff --git a/pages/api/v2/bots/[id]/report.ts b/pages/api/v2/bots/[id]/report.ts index b3ee015..d381925 100644 --- a/pages/api/v2/bots/[id]/report.ts +++ b/pages/api/v2/bots/[id]/report.ts @@ -13,10 +13,9 @@ const limiter = rateLimit({ statusCode: 429, handler: (_req, res) => ResponseWrapper(res, { code: 429 }), keyGenerator: (req) => req.headers.authorization, - skip: (req, res) => { + skip: (_req, res) => { res.removeHeader('X-RateLimit-Global') - if(!req.headers.authorization) return true - else return false + return false } })