Răsfoiți Sursa

delete unuse code

zahmis 4 ani în urmă
părinte
comite
cbaef6313d
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  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
      */
@@ -398,9 +399,7 @@ export class SlackCtrl {
   async handleEvent(@Req() req: SlackOauthReq): Promise<void> {
 
     const { authorizeResult } = req;
-    if (authorizeResult.botToken == null) {
-      return;
-    }
+
     const client = generateWebClient(authorizeResult.botToken);
 
     if (req.body.event.type === 'app_home_opened') {