fix(kb.gbapp): Search score now is derived from root.
This commit is contained in:
parent
54ef60b4af
commit
b68adc3627
1 changed files with 5 additions and 7 deletions
|
@ -227,16 +227,14 @@ export class AskDialog extends IGBDialog {
|
|||
|
||||
private static async handleAnswer(service: KBService, min: GBMinInstance, step: any, answer: GuaribasAnswer) {
|
||||
|
||||
const urlSufix = 'url:';
|
||||
|
||||
if (answer.content.endsWith('.docx')) {
|
||||
const mainName = answer.content.replace(/\s|\-/gi, '').split('.')[0];
|
||||
return await GBMinService.callVM(mainName, min, step);
|
||||
await GBMinService.callVM(mainName, min, step);
|
||||
|
||||
} else {
|
||||
await service.sendAnswer(min, AskDialog.getChannel(step), step, answer);
|
||||
|
||||
return await step.replaceDialog('/ask', { isReturning: true });
|
||||
}
|
||||
return await step.replaceDialog('/ask', { isReturning: true });
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue