ソースを参照

fix build err

itizawa 4 年 前
コミット
1f95cd173b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/server/routes/apiv3/slack-integration-settings.js

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

@@ -470,7 +470,7 @@ module.exports = (crowi) => {
         return res.apiv3Err(new ErrorV3(msg, 'find-slackAppIntegration-failed'), 400);
       }
       const result = await postRelationTest(slackAppIntegration.tokenGtoP);
-      slackBotToken = result.relation?.installation?.data?.bot?.token;
+      slackBotToken = result.relation.installation.data.bot.token;
       if (slackBotToken == null) {
         const msg = 'Could not find slackBotToken by relation';
         return res.apiv3Err(new ErrorV3(msg, 'find-slackBotToken-failed'), 400);