소스 검색

fix variable: result to resultTestSlackApiServer

zahmis 5 년 전
부모
커밋
3089ffbf3d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/slack/src/utils/check-communicable.ts

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

@@ -43,8 +43,8 @@ const testSlackApiServer = async(client: WebClient): Promise<any> => {
   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'];
 
   if (correctScopes.every(e => slackScopes.includes(e))) {