zahmis 5 лет назад
Родитель
Сommit
a148d6fd8b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/server/routes/apiv3/slack-integration.js

+ 1 - 2
src/server/routes/apiv3/slack-integration.js

@@ -57,8 +57,7 @@ module.exports = (crowi) => {
         .isIn(['officialBot', 'customBotWithoutProxy', 'customBotWithProxy']),
     ],
     NotificationTestToSlackWorkSpace: [
-      body('channel').not().trim().isIn([''])
-        .isString(),
+      body('channel').trim().not().isEmpty(),
     ],
   };