Explorar el Código

Merge branch 'feat/growi-bot' into 5882-PUT-error

Steven Fukase hace 4 años
padre
commit
5d462d35c7

+ 1 - 1
packages/slackbot-proxy/src/middlewares/authorizer.ts

@@ -30,7 +30,7 @@ export class AuthorizeCommandMiddleware implements IMiddleware {
 
     // extract id from body
     const teamId = body.team_id;
-    const enterpriseId = body.enterprize_id;
+    const enterpriseId = body.enterprise_id;
     const isEnterpriseInstall = body.is_enterprise_install === 'true';
 
     if (teamId == null && enterpriseId == null) {

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

@@ -115,7 +115,7 @@ module.exports = (crowi) => {
       const token = settings.slackBotToken;
       // check the token is not null
       if (token != null) {
-        connectionStatuses = Object.fromEntries(await getConnectionStatuses([]));
+        connectionStatuses = Object.fromEntries(await getConnectionStatuses([token]));
       }
     }
     else {