|
@@ -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'),
|
|
|
|
|
+
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
/**
|