We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since we can now pass ?limit0, would it be worth adding an optional, third parameter to the middleware function, such that:
?limit0
exports.middleware = function middleware(limit, maxLimit, minLimit) { }
The alternative is doing something as follows, if we care about order of min and max:
exports.middleware = function middleware(limit, minOrMaxLimit, maxLimit) { let minLimit = 0; if (maxLimit) { minLimit = minOrMaxLimit; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since we can now pass
?limit0
, would it be worth adding an optional, third parameter to the middleware function, such that:The alternative is doing something as follows, if we care about order of min and max:
The text was updated successfully, but these errors were encountered: