fix existing var name
This commit is contained in:
@@ -49,9 +49,9 @@ function rateLimitFn(userLimitsApi, endpointGroup = null) {
|
||||
});
|
||||
|
||||
if (isBlocked) {
|
||||
const err = new Error('You are over the limits.');
|
||||
err.http_status = 429;
|
||||
return next(err);
|
||||
const rateLimitError = new Error('You are over the limits.');
|
||||
rateLimitError.http_status = 429;
|
||||
return next(rateLimitError);
|
||||
}
|
||||
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user