mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
chore: rateLimiter.js
This commit is contained in:
parent
97bd8f9e5a
commit
c0e91e205c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user