From 60ea155b336a9ed284e6076f0866bdd685b0d8af Mon Sep 17 00:00:00 2001 From: tycrek Date: Sat, 3 Jul 2021 01:12:53 -0600 Subject: [PATCH] temp fix --- routers/upload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/upload.js b/routers/upload.js index 6dfbb1b..df50c44 100644 --- a/routers/upload.js +++ b/routers/upload.js @@ -1,6 +1,6 @@ const fs = require('fs-extra'); const marked = require('marked'); -const rateLimit = require('express-rate-limit'); +//const rateLimit = require('express-rate-limit'); const { DateTime } = require('luxon'); const { WebhookClient, MessageEmbed } = require('discord.js'); const { doUpload, processUploaded } = require('../storage'); @@ -23,10 +23,10 @@ router.get('/', (_req, res, next) => .catch(next)); // Rate limit middleware -router.use('/', rateLimit({ +/* router.use('/', rateLimit({ windowMs: 1000 * 60, // 60 seconds // skipcq: JS-0074 max: 90 // Limit each IP to 30 requests per windowMs // skipcq: JS-0074 -})); +})); */ // Block unauthorized requests and attempt token sanitization router.post('/', (req, res, next) => {