zahmis 5 ani în urmă
părinte
comite
f72d2ff761

+ 0 - 4
packages/slackbot-proxy/src/Server.ts

@@ -8,7 +8,6 @@ import methodOverride from 'method-override';
 import '@tsed/swagger';
 import { TypeORMService } from '@tsed/typeorm';
 import { ConnectionOptions } from 'typeorm';
-// import { ReceiveService } from './services/RecieveService';
 
 export const rootDir = __dirname;
 
@@ -72,9 +71,6 @@ export class Server {
   @Inject()
   injector: InjectorService;
 
-  // @Inject()
-  // receiveService:ReceiveService
-
   $beforeRoutesInit(): void {
     this.app
       .use(cookieParser())

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

@@ -7,7 +7,6 @@ import { InstallationRepository } from '~/repositories/installation';
 import { InstallerService } from '~/services/InstallerService';
 import { ReceiveService } from '~/services/RecieveService';
 
-// import { IndexService } from '../../../slack/src/services/index';
 @Controller('/slack')
 export class SlackCtrl {
 
@@ -63,8 +62,8 @@ export class SlackCtrl {
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
 
-    const hoge = this.receiveService.receive(body);
-    console.log('Controller', hoge);
+    const slackInput = this.receiveService.receive(body);
+    console.log('Controller', slackInput);
     res.send();
     // console.log(body.text);
     // const index = new IndexService();

+ 0 - 1
packages/slackbot-proxy/src/services/RecieveService.ts

@@ -1,5 +1,4 @@
 import { Service } from '@tsed/di';
-// import { parse } from '../../../slack/src/utils/slash-command-parser';
 import { openModal } from '../../../slack/src/services/register';
 
 @Service()