|
@@ -155,11 +155,11 @@ module.exports = (crowi) => {
|
|
|
generateZipFile: [
|
|
generateZipFile: [
|
|
|
body('collections')
|
|
body('collections')
|
|
|
.isArray()
|
|
.isArray()
|
|
|
- .withMessage('collections must be an array')
|
|
|
|
|
|
|
+ .withMessage('"collections" must be an array')
|
|
|
.bail()
|
|
.bail()
|
|
|
|
|
|
|
|
.notEmpty()
|
|
.notEmpty()
|
|
|
- .withMessage('Collections array cannot be empty')
|
|
|
|
|
|
|
+ .withMessage('"collections" array cannot be empty')
|
|
|
.bail()
|
|
.bail()
|
|
|
|
|
|
|
|
.custom(async(value) => {
|
|
.custom(async(value) => {
|