|
|
@@ -3,7 +3,6 @@ import {
|
|
|
} from '@tsed/common';
|
|
|
|
|
|
import axios from 'axios';
|
|
|
-import createError from 'http-errors';
|
|
|
|
|
|
import { WebAPICallResult } from '@slack/web-api';
|
|
|
|
|
|
@@ -94,7 +93,7 @@ export class SlackCtrl {
|
|
|
}
|
|
|
|
|
|
@Post('/commands')
|
|
|
- @UseBefore(AddSigningSecretToReq, verifySlackRequest, (req, res, next) => { return next(createError('Error DETEMASUYO!')) }, AuthorizeCommandMiddleware)
|
|
|
+ @UseBefore(AddSigningSecretToReq, verifySlackRequest, AuthorizeCommandMiddleware)
|
|
|
async handleCommand(@Req() req: SlackOauthReq, @Res() res: Res): Promise<void|string|Res|WebAPICallResult> {
|
|
|
const { body, authorizeResult } = req;
|
|
|
|