zahmis 4 ani în urmă
părinte
comite
fcd84e2844
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.
    *             description: Succeeded to put CustomBotWithoutProxy setting.
    */
    */
   router.put('/without-proxy/update-settings', async(req, res) => {
   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') {
     if (currentBotType !== 'customBotWithoutProxy') {
       const msg = 'Not CustomBotWithoutProxy';
       const msg = 'Not CustomBotWithoutProxy';
       return res.apiv3Err(new ErrorV3(msg, 'not-customBotWithoutProxy'), 400);
       return res.apiv3Err(new ErrorV3(msg, 'not-customBotWithoutProxy'), 400);