itizawa 4 лет назад
Родитель
Сommit
80b5e7c758
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      packages/slackbot-proxy/src/controllers/slack.ts

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

@@ -87,14 +87,13 @@ export class SlackCtrl {
       return this.registerService.process(growiCommand, authorizeResult, body as {[key:string]:string});
     }
 
-
     // unregister
     if (growiCommand.growiCommandType === 'unregister') {
       // Send response immediately to avoid opelation_timeout error
       // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
       res.send();
 
-      return this.registerService.unregister(growiCommand, authorizeResult, body as {[key:string]:string});
+      return this.unregisterService.process(growiCommand, authorizeResult, body as {[key:string]:string});
     }
 
     const installationId = authorizeResult.enterpriseId || authorizeResult.teamId;