|
@@ -1,11 +1,11 @@
|
|
|
import { Service } from '@tsed/di';
|
|
import { Service } from '@tsed/di';
|
|
|
-import { parse } from '@growi/slack/utils/slash-command-parser';
|
|
|
|
|
|
|
+import { parseSlashCommand } from '@growi/slack';
|
|
|
|
|
|
|
|
@Service()
|
|
@Service()
|
|
|
export class ReceiveService {
|
|
export class ReceiveService {
|
|
|
|
|
|
|
|
receiveContentsFromSlack(body:{[key:string]:string}) : string {
|
|
receiveContentsFromSlack(body:{[key:string]:string}) : string {
|
|
|
- const parseBody = parse(body);
|
|
|
|
|
|
|
+ const parseBody = parseSlashCommand(body);
|
|
|
if (parseBody.growiCommandType === 'register') {
|
|
if (parseBody.growiCommandType === 'register') {
|
|
|
console.log('register action occured');
|
|
console.log('register action occured');
|
|
|
return 'register action occurd';
|
|
return 'register action occurd';
|