fix(core.gbapp): FIX SSR errors and setOption impersonated.
This commit is contained in:
parent
e596f31de6
commit
7a6d14cf3a
3 changed files with 9 additions and 7 deletions
|
@ -807,7 +807,7 @@ export class DialogKeywords {
|
||||||
};
|
};
|
||||||
min.cbMap[userId] = {};
|
min.cbMap[userId] = {};
|
||||||
min.cbMap[userId]['promise'] = '!GBHEAR';
|
min.cbMap[userId]['promise'] = '!GBHEAR';
|
||||||
|
|
||||||
while (min.cbMap[userId].promise === '!GBHEAR') {
|
while (min.cbMap[userId].promise === '!GBHEAR') {
|
||||||
await sleep(DEFAULT_HEAR_POLL_INTERVAL);
|
await sleep(DEFAULT_HEAR_POLL_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}`);
|
GBLog.info(`NLP NOT called: score: ${score} > required (nlpScore): ${instanceScore}`);
|
||||||
|
|
||||||
return null;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getLanguage(min: GBMinInstance, text: string): Promise<string> {
|
public async getLanguage(min: GBMinInstance, text: string): Promise<string> {
|
||||||
|
|
|
@ -195,7 +195,7 @@ export class AskDialog extends IGBDialog {
|
||||||
await GBVMService.callVM(startDialog.toLowerCase().trim(), min, step, user, this.deployer, false);
|
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;
|
const locale = step.context.activity.locale;
|
||||||
|
@ -270,9 +270,9 @@ export class AskDialog extends IGBDialog {
|
||||||
|
|
||||||
// Tries to answer by NLP.
|
// Tries to answer by NLP.
|
||||||
|
|
||||||
let nextDialog = await min.conversationalService.routeNLP(step, min, text);
|
let handled = await min.conversationalService.routeNLP(step, min, text);
|
||||||
if (nextDialog) {
|
if (handled) {
|
||||||
return nextDialog;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tries to answer by Reading Comprehension.
|
// Tries to answer by Reading Comprehension.
|
||||||
|
|
Loading…
Add table
Reference in a new issue