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

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

@@ -22,7 +22,7 @@ export class SlackCtrl {
 
 
    growiCommandsMappings = {
-     register: (body:{[key:string]:string}):Promise<void> => this.registerService.execSlashCommand(body),
+     register: async(body:{[key:string]:string}):Promise<void> => this.registerService.execSlashCommand(body),
    };
 
   @Get('/testsave')
@@ -71,7 +71,6 @@ export class SlackCtrl {
 
     const parsedBody = parse(body);
     const executeGrowiCommand = this.growiCommandsMappings[parsedBody.growiCommandType];
-    // console.log(executeGrowiCommand());
     await executeGrowiCommand(body);
     res.send();