Return relevant context in search results returned to slack slash command
This commit is contained in:
@ -71,7 +71,7 @@ router.post('hooks.slack', async ctx => {
|
||||
if (results.length) {
|
||||
const attachments = [];
|
||||
for (const result of results) {
|
||||
attachments.push(presentSlackAttachment(result.document));
|
||||
attachments.push(presentSlackAttachment(result.document, result.context));
|
||||
}
|
||||
|
||||
ctx.body = {
|
||||
|
Reference in New Issue
Block a user