|
@@ -58,10 +58,11 @@ export class SlackCtrl {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Post('/events')
|
|
@Post('/events')
|
|
|
- handleEvent(@BodyParams() body: any, @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
|
|
|
|
|
|
|
|
|
|
+ console.log(body);
|
|
|
const slackInput = this.receiveService.receiveContentsFromSlack(body);
|
|
const slackInput = this.receiveService.receiveContentsFromSlack(body);
|
|
|
console.log('Controller/events', slackInput);
|
|
console.log('Controller/events', slackInput);
|
|
|
res.send();
|
|
res.send();
|