Kaori Tokashiki 5 лет назад
Родитель
Сommit
4c5762ceca
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      src/server/service/bolt.js

+ 6 - 3
src/server/service/bolt.js

@@ -174,11 +174,14 @@ class BoltService {
     }
     console.log('arr', arr);
     // removing 'search' from the head in the array.
-    const shiftedValue = args.shift();
-    const keywords = args.join(' ');
+    // const shiftedValue = args.shift();
+    // const keywords = args.join(' ');
+    const keywords = arr.join(' ');
+    console.log('keywords', keywords);
+    console.log('args', args);
 
     // adding 'search' to the head in the array again.
-    args.unshift(shiftedValue);
+    // args.unshift(shiftedValue);
 
     const { searchService } = this.crowi;
     const options = { limit: 10, offset };