2
0
Эх сурвалжийг харах

fix variable: result to resultTestSlackApiServer

zahmis 4 жил өмнө
parent
commit
3089ffbf3d

+ 2 - 2
packages/slack/src/utils/check-communicable.ts

@@ -43,8 +43,8 @@ const testSlackApiServer = async(client: WebClient): Promise<any> => {
   return result;
   return result;
 };
 };
 
 
-const checkSlackScopes = (result: any) => {
-  const slackScopes = result.response_metadata.scopes;
+const checkSlackScopes = (resultTestSlackApiServer: any) => {
+  const slackScopes = resultTestSlackApiServer.response_metadata.scopes;
   const correctScopes = ['commands', 'team:read', 'chat:write'];
   const correctScopes = ['commands', 'team:read', 'chat:write'];
 
 
   if (correctScopes.every(e => slackScopes.includes(e))) {
   if (correctScopes.every(e => slackScopes.includes(e))) {