fix checking rate limit enabled
This commit is contained in:
@@ -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(); };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user