zahmis пре 5 година
родитељ
комит
79b43762ce
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      src/server/routes/apiv3/slack-integration.js

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

@@ -69,7 +69,7 @@ module.exports = (crowi) => {
   router.get('/', accessTokenParser, loginRequiredStrictly, adminRequired, async(req, res) => {
 
     const slackBotSettingParams = {
-      slackBotType: await crowi.configManager.getConfig('crowi', 'slackbot:type'),
+      slackBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
       // TODO impl when creating official bot
       officialBotSettings: {
         // TODO impl this after GW-4939
@@ -78,8 +78,8 @@ module.exports = (crowi) => {
       cusotmBotNonProxySettings: {
         // TODO impl this after GW-4939
         // AccessToken: "tempaccessdatahogehoge",
-        slackSigningSecret: await crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
-        slackBotToken: await crowi.configManager.getConfig('crowi', 'slackbot:token'),
+        slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
+        slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
       },
       // TODO imple when creating with proxy
       cusotmBotWithProxySettings: {
@@ -122,9 +122,9 @@ module.exports = (crowi) => {
       try {
         await updateSlackBotSettings(requestParams);
         const customBotNonProxySettingsParams = {
-          slackSigningSecret: await crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
-          slackBotToken: await crowi.configManager.getConfig('crowi', 'slackbot:token'),
-          slackBotType: await crowi.configManager.getConfig('crowi', 'slackbot:type'),
+          slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
+          slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
+          slackBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
         };
         return res.apiv3({ customBotNonProxySettingsParams });
       }