zahmis 5 lat temu
rodzic
commit
4a5a5abe50
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/server/routes/apiv3/slack-integration.js

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

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