Browse Source

delete unuse code

zahmis 4 years ago
parent
commit
cbaef6313d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      packages/slackbot-proxy/src/controllers/slack.ts

+ 2 - 3
packages/slackbot-proxy/src/controllers/slack.ts

@@ -371,6 +371,7 @@ export class SlackCtrl {
         ],
         ],
       });
       });
     }
     }
+
     /*
     /*
      * forward to GROWI server
      * forward to GROWI server
      */
      */
@@ -398,9 +399,7 @@ export class SlackCtrl {
   async handleEvent(@Req() req: SlackOauthReq): Promise<void> {
   async handleEvent(@Req() req: SlackOauthReq): Promise<void> {
 
 
     const { authorizeResult } = req;
     const { authorizeResult } = req;
-    if (authorizeResult.botToken == null) {
-      return;
-    }
+
     const client = generateWebClient(authorizeResult.botToken);
     const client = generateWebClient(authorizeResult.botToken);
 
 
     if (req.body.event.type === 'app_home_opened') {
     if (req.body.event.type === 'app_home_opened') {