|
|
@@ -1,19 +1,19 @@
|
|
|
-import { Service } from '@tsed/di';
|
|
|
-import { parse } from '@growi/slack/src/utils/slash-command-parser';
|
|
|
-// import { openRegisterModal } from './RegisterService';
|
|
|
+// import { Service } from '@tsed/di';
|
|
|
+// import { parse } from '@growi/slack/src/utils/slash-command-parser';
|
|
|
+// // import { openRegisterModal } from './RegisterService';
|
|
|
|
|
|
-@Service()
|
|
|
-export class ReceiveService {
|
|
|
+// @Service()
|
|
|
+// export class ReceiveService {
|
|
|
|
|
|
- async receiveContentsFromSlack(body:{[key:string]:string}) : Promise<string> {
|
|
|
- const parseBody = parse(body);
|
|
|
+// async receiveContentsFromSlack(body:{[key:string]:string}) : Promise<string> {
|
|
|
+// const parseBody = parse(body);
|
|
|
|
|
|
- if (parseBody.growiCommandType === 'register') {
|
|
|
- // await openRegisterModal(body);
|
|
|
- return 'register action occurd';
|
|
|
- }
|
|
|
+// if (parseBody.growiCommandType === 'register') {
|
|
|
+// // await openRegisterModal(body);
|
|
|
+// return 'register action occurd';
|
|
|
+// }
|
|
|
|
|
|
- return 'return receiveContentsFromSlack';
|
|
|
- }
|
|
|
+// return 'return receiveContentsFromSlack';
|
|
|
+// }
|
|
|
|
|
|
-}
|
|
|
+// }
|