zahmis пре 4 година
родитељ
комит
b283be17aa
1 измењених фајлова са 0 додато и 6 уклоњено
  1. 0 6
      packages/slackbot-proxy/src/controllers/slack.ts

+ 0 - 6
packages/slackbot-proxy/src/controllers/slack.ts

@@ -337,17 +337,11 @@ export class SlackCtrl {
     logger.info('receive event', body);
     logger.info('receive event', body);
 
 
     const { authorizeResult } = req;
     const { authorizeResult } = req;
-
     if (authorizeResult.botToken == null) {
     if (authorizeResult.botToken == null) {
       return;
       return;
     }
     }
-
     const client = generateWebClient(authorizeResult.botToken);
     const client = generateWebClient(authorizeResult.botToken);
 
 
-    if (authorizeResult.botId == null) {
-      return;
-    }
-
     const event: any = body.event;
     const event: any = body.event;
 
 
     await postWelcomeMessage(client, event.channel);
     await postWelcomeMessage(client, event.channel);