zahmis преди 5 години
родител
ревизия
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(),
     ],
   };