ryuichi-e 5 лет назад
Родитель
Сommit
bfcc63e809
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/server/routes/apiv3/share-links.js

+ 2 - 1
src/server/routes/apiv3/share-links.js

@@ -42,7 +42,8 @@ module.exports = (crowi) => {
     body('expiration').isAfter(today.toString()).withMessage('Your Selected date is past'),
     body('expiration').isAfter(today.toString()).withMessage('Your Selected date is past'),
 
 
     // validate the length of description is max 100.
     // validate the length of description is max 100.
-    body('description').isLength({ min: 0, max: 100 }),
+    body('description').isLength({ min: 0, max: 100 }).withMessage('Max length is 100'),
+
   ];
   ];
 
 
   /**
   /**