zahmis il y a 5 ans
Parent
commit
b1943e6f57
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      packages/slackbot-proxy/src/controllers/slack.ts

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

@@ -1,4 +1,3 @@
-import { SlashCommand } from '@slack/bolt';
 import {
 import {
   BodyParams, Controller, Get, Inject, Post, Req, Res,
   BodyParams, Controller, Get, Inject, Post, Req, Res,
 } from '@tsed/common';
 } from '@tsed/common';
@@ -59,7 +58,7 @@ export class SlackCtrl {
   }
   }
 
 
   @Post('/events')
   @Post('/events')
-  handleEvent(@BodyParams() body:SlashCommand, @Res() res: Res): string {
+  handleEvent(@BodyParams() body:{[key:string]:string}, @Res() res: Res): string {
     // Send response immediately to avoid opelation_timeout error
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events