fix: revert error in case that recursively property is null
@@ -1229,7 +1229,8 @@ module.exports = function(crowi, app) {
validator.revertRemove = [
body('recursively')
- .custom(v => v === 'true' || v === true || null)
+ .optional()
+ .custom(v => v === 'true' || v === true || v == null)
.withMessage('The body property "recursively" must be "true" or true. (Omit param for false)'),
];