fix checking rate limit enabled

This commit is contained in:
Simon Martín 2018-03-02 15:48:31 +01:00
parent 843f70cdba
commit bf267e9c95

View File

@ -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(); };
}