fix checking rate limit enabled
This commit is contained in:
parent
843f70cdba
commit
bf267e9c95
@ -19,7 +19,7 @@ const RATE_LIMIT_ENDPOINTS_GROUPS = {
|
||||
};
|
||||
|
||||
function rateLimit(userLimitsApi, endpointGroup = null) {
|
||||
if (isRateLimitEnabled(endpointGroup)) {
|
||||
if (!isRateLimitEnabled(endpointGroup)) {
|
||||
return function rateLimitDisabledMiddleware(req, res, next) { next(); };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user