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

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

@@ -66,7 +66,7 @@ module.exports = (crowi) => {
     RelationTest: [
       body('slackappintegrationsId').isMongoId(),
     ],
-    Channel: [
+    SlackChannel: [
       body('channel').trim().not().isEmpty()
         .isString(),
     ],
@@ -498,7 +498,7 @@ module.exports = (crowi) => {
    *           200:
    *             description: Succeeded to connect to slack work space.
    */
-  router.post('/without-proxy/relation-test', loginRequiredStrictly, adminRequired, csrf, validator.Channel, apiV3FormValidator, async(req, res) => {
+  router.post('/without-proxy/relation-test', loginRequiredStrictly, adminRequired, csrf, validator.SlackChannel, apiV3FormValidator, async(req, res) => {
     const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:currentBotType');
     if (currentBotType !== 'customBotWithoutProxy') {
       const msg = 'Select Without Proxy Type';