Răsfoiți Sursa

Revert "temp"

This reverts commit e332290c5fc239b1ffacdbf68c8c127e32e996f2.
zahmis 5 ani în urmă
părinte
comite
636edf392d
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 4
      src/server/service/bolt.js

+ 1 - 4
src/server/service/bolt.js

@@ -80,16 +80,13 @@ class BoltService {
       const inputSlack = command.text.split(' ');
       const inputSlack = command.text.split(' ');
       const firstArg = inputSlack[0];
       const firstArg = inputSlack[0];
       const secondArg = inputSlack[1];
       const secondArg = inputSlack[1];
-      await ack();
 
 
       if (firstArg === 'search') {
       if (firstArg === 'search') {
         const { searchService } = this.crowi;
         const { searchService } = this.crowi;
         const option = { limit: 10 };
         const option = { limit: 10 };
         const results = await searchService.searchKeyword(secondArg, null, {}, option);
         const results = await searchService.searchKeyword(secondArg, null, {}, option);
         // get 10 result from slack input
         // get 10 result from slack input
-        // console.log(results.data[0]);
-
-        await say(`${results.data[0]._id}`);
+        console.log(results.data);
       }
       }
       return;
       return;
     });
     });