浏览代码

changed to slackbot:currentBotType

Steven Fukase 5 年之前
父节点
当前提交
d24f05b687
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/server/routes/apiv3/slack-integration.js

+ 5 - 5
src/server/routes/apiv3/slack-integration.js

@@ -87,7 +87,7 @@ module.exports = (crowi) => {
   router.get('/', accessTokenParser, loginRequiredStrictly, adminRequired, async(req, res) => {
   router.get('/', accessTokenParser, loginRequiredStrictly, adminRequired, async(req, res) => {
 
 
     const slackBotSettingParams = {
     const slackBotSettingParams = {
-      currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
+      currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:currentBotType'),
       // TODO impl when creating official bot
       // TODO impl when creating official bot
       officialBotSettings: {
       officialBotSettings: {
         // TODO impl this after GW-4939
         // TODO impl this after GW-4939
@@ -134,7 +134,7 @@ module.exports = (crowi) => {
       const { currentBotType } = req.body;
       const { currentBotType } = req.body;
 
 
       const requestParams = {
       const requestParams = {
-        'slackbot:type': currentBotType,
+        'slackbot:currentBotType': currentBotType,
       };
       };
 
 
       try {
       try {
@@ -145,7 +145,7 @@ module.exports = (crowi) => {
         crowi.boltService.publishUpdatedMessage();
         crowi.boltService.publishUpdatedMessage();
 
 
         const slackIntegrationSettingsParams = {
         const slackIntegrationSettingsParams = {
-          currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
+          currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:currentBotType'),
         };
         };
         return res.apiv3({ slackIntegrationSettingsParams });
         return res.apiv3({ slackIntegrationSettingsParams });
       }
       }
@@ -182,7 +182,7 @@ module.exports = (crowi) => {
       const requestParams = {
       const requestParams = {
         'slackbot:signingSecret': slackSigningSecret,
         'slackbot:signingSecret': slackSigningSecret,
         'slackbot:token': slackBotToken,
         'slackbot:token': slackBotToken,
-        'slackbot:type': botType,
+        'slackbot:currentBotType': botType,
       };
       };
 
 
       try {
       try {
@@ -196,7 +196,7 @@ module.exports = (crowi) => {
         const customBotWithoutProxySettingParams = {
         const customBotWithoutProxySettingParams = {
           slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
           slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
           slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
           slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
-          slackBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
+          slackBotType: crowi.configManager.getConfig('crowi', 'slackbot:currentBotType'),
         };
         };
         return res.apiv3({ customBotWithoutProxySettingParams });
         return res.apiv3({ customBotWithoutProxySettingParams });
       }
       }