Browse Source

add optional

kaori 4 years ago
parent
commit
37d17edca4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/app/src/server/routes/page.js

+ 1 - 0
packages/app/src/server/routes/page.js

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