|
|
@@ -60,14 +60,15 @@ class BoltService {
|
|
|
}
|
|
|
|
|
|
async searchResult() {
|
|
|
- // Example of listening for event
|
|
|
// See. https://github.com/slackapi/bolt-js#listening-for-events
|
|
|
// or https://slack.dev/bolt-js/concepts#basic
|
|
|
this.bolt.command('/growi-bot', async({ command, ack, say }) => { // demo
|
|
|
await say('Hello');
|
|
|
const { searchService } = this.crowi;
|
|
|
- const result = await searchService.searchKeyword(command.text, {}, {}, {});
|
|
|
- console.log(result);
|
|
|
+ const results = await searchService.searchKeyword(command.text, null, {}, {});
|
|
|
+ results.data.forEach((result) => {
|
|
|
+ console.log(result);
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
|