Skip to content
New issue

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

Fix/3506 5135 deprecated method #3414

Merged
merged 2 commits into from
Feb 12, 2021
Merged

Conversation

itizawa
Copy link
Contributor

@itizawa itizawa commented Feb 12, 2021

No description provided.

@itizawa itizawa self-assigned this Feb 12, 2021
sanitizeQuery('limit').customSanitizer(toPagingLimit),
sanitizeQuery('offset').customSanitizer(toPagingOffset),
query('limit').customSanitizer(toPagingLimit),
query('offset').customSanitizer(toPagingOffset),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://express-validator.github.io/docs/filter-api.html

These sanitization-only middlewares have been deprecated, as the validation middlewares offer the same functionality, and much more. They will be removed eventually.

@@ -97,7 +97,7 @@ module.exports = (crowi) => {
* type: object
* description: Statistics for all user
*/
router.get('/user', helmet.noCache(), async(req, res) => {
router.get('/user', noCache(), async(req, res) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuki-takei yuki-takei merged commit 5efa0c8 into dev/5.0.x Feb 12, 2021
@yuki-takei yuki-takei deleted the fix/3506-5135-deprecated-method branch February 12, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants