chore: rateLimiter.js

This commit is contained in:
Bobby Wibowo 2022-07-21 23:55:48 +07:00
parent 97bd8f9e5a
commit c0e91e205c
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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