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

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

@@ -272,7 +272,7 @@ module.exports = (crowi) => {
    *             description: Succeeded to put CustomBotWithoutProxy setting.
    */
   router.put('/without-proxy/update-settings', async(req, res) => {
-    const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:signingSecret');
+    const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:currentBotType');
     if (currentBotType !== 'customBotWithoutProxy') {
       const msg = 'Not CustomBotWithoutProxy';
       return res.apiv3Err(new ErrorV3(msg, 'not-customBotWithoutProxy'), 400);