fix(kb.gbapp): Search score now is derived from root.

This commit is contained in:
Rodrigo Rodriguez 2020-06-03 22:15:24 -03:00
parent 54ef60b4af
commit b68adc3627

View file

@ -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 });
}