fix(core.gbapp): FIX SSR errors and setOption impersonated.

This commit is contained in:
Rodrigo Rodriguez 2023-07-26 13:27:15 -03:00
parent e596f31de6
commit 7a6d14cf3a
3 changed files with 9 additions and 7 deletions

View file

@ -875,12 +875,14 @@ export class GBConversationalService {
});
}
return await step.replaceDialog(`/${intent}`, step.activeDialog.state.options);
await step.replaceDialog(`/${intent}`, step.activeDialog.state.options);
return true;
}
GBLog.info(`NLP NOT called: score: ${score} > required (nlpScore): ${instanceScore}`);
return null;
return false;
}
public async getLanguage(min: GBMinInstance, text: string): Promise<string> {

View file

@ -195,7 +195,7 @@ export class AskDialog extends IGBDialog {
await GBVMService.callVM(startDialog.toLowerCase().trim(), min, step, user, this.deployer, false);
}
return step.endDialog();
return await step.endDialog();
}
const locale = step.context.activity.locale;
@ -270,9 +270,9 @@ export class AskDialog extends IGBDialog {
// Tries to answer by NLP.
let nextDialog = await min.conversationalService.routeNLP(step, min, text);
if (nextDialog) {
return nextDialog;
let handled = await min.conversationalService.routeNLP(step, min, text);
if (handled) {
return;
}
// Tries to answer by Reading Comprehension.