|
|
@@ -1,11 +1,14 @@
|
|
|
import { Service } from '@tsed/di';
|
|
|
+import { openRegisterModal } from './RegisterService';
|
|
|
+
|
|
|
|
|
|
@Service()
|
|
|
export class ReceiveService {
|
|
|
|
|
|
receiveContentsFromSlack(body:{[key:string]:string}) : string {
|
|
|
if (body.text === 'register') {
|
|
|
- console.log('register action occured');
|
|
|
+ openRegisterModal(body);
|
|
|
+
|
|
|
return 'register action occurd';
|
|
|
}
|
|
|
return 'return receiveContentsFromSlack';
|