Просмотр исходного кода

restore commentout in slash-command-parser

zahmis 5 лет назад
Родитель
Сommit
e209a2fa1d
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      packages/slack/src/utils/slash-command-parser.ts

+ 4 - 4
packages/slack/src/utils/slash-command-parser.ts

@@ -1,12 +1,12 @@
-// import { SlashCommand } from '@slack/bolt';
+import { SlashCommand } from '@slack/bolt';
 
-// import { GrowiCommand } from '~/interfaces/growi-command';
-// import { InvalidGrowiCommandError } from '~/models/errors';
+import { GrowiCommand } from '~/interfaces/growi-command';
+import { InvalidGrowiCommandError } from '~/models/errors';
 
 export const parse = (slashCommand) => {
   const splitted = slashCommand.text.split(' ');
   if (splitted.length < 2) {
-    // throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');
+    throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');
   }
 
   return {