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

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

@@ -5,7 +5,7 @@ import { InvalidGrowiCommandError } from '../models/errors';
 
 
 export const parse = (slashCommand: SlashCommand): GrowiCommand => {
 export const parse = (slashCommand: SlashCommand): GrowiCommand => {
   const splitted = slashCommand.text.split(' ');
   const splitted = slashCommand.text.split(' ');
-  if (splitted.length < 2) {
+  if (splitted.length < 1) {
     throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');
     throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');
   }
   }