diff --git a/server/src/routes/bot-denies/[id].js b/server/src/routes/bot-denies/[id].js index 22e8e518..f04699c0 100644 --- a/server/src/routes/bot-denies/[id].js +++ b/server/src/routes/bot-denies/[id].js @@ -7,8 +7,7 @@ module.exports = { delete: [ checkAuthentication, useRateLimiter({ maxRequests: 10, perMinutes: 1 }), - param('id') - .isMongoId().withMessage('Invalid ID.'), + param('id'), async (request, response) => { const errors = validationResult(request); if (!errors.isEmpty()) return response.sendError(errors.array()[0].msg, 400);