From c0e91e205c07485e3934df9fb65bf79128c1a600 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Thu, 21 Jul 2022 23:55:48 +0700 Subject: [PATCH] chore: rateLimiter.js --- controllers/middlewares/rateLimiter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/middlewares/rateLimiter.js b/controllers/middlewares/rateLimiter.js index 0b1a713..71a5212 100644 --- a/controllers/middlewares/rateLimiter.js +++ b/controllers/middlewares/rateLimiter.js @@ -22,7 +22,7 @@ class RateLimiter { this.rateLimiterMemory = new RateLimiterMemory(options) } - async #middleware (req, res, next) { + async #middleware (req, res) { if (res.locals.rateLimit) return // If unset, assume points pool is shared to all visitors of each route