Просмотр исходного кода

fix: add logger initialization for export route

Shun Miyazawa 7 месяцев назад
Родитель
Сommit
cec00bfd38
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/server/routes/apiv3/export.js

+ 2 - 2
apps/app/src/server/routes/apiv3/export.js

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