fix(kb.gbapp): #297 Spellchecker fixed after MSFT changes in service.

This commit is contained in:
rodrigorodriguez 2023-03-01 10:54:44 -03:00
parent ec1c38f378
commit 80853f014c
3 changed files with 3 additions and 5 deletions

View file

@ -132,7 +132,7 @@
"phone": "3.1.30",
"pizzip": "3.1.3",
"pptxtemplater": "1.0.5",
"pragmatismo-io-framework": "1.1.0",
"pragmatismo-io-framework": "1.1.1",
"prism-media": "1.3.4",
"public-ip": "6.0.1",
"punycode": "2.1.1",

View file

@ -887,10 +887,10 @@ export class GBConversationalService {
const key = min.core.getParam<string>(min.instance, 'spellcheckerKey', null);
if (key) {
text = text.charAt(0).toUpperCase() + text.slice(1);
text = text.charAt(0).toUpperCase() + text.slice(1);
const data = await AzureText.getSpelledText(key, text);
if (data !== text) {
GBLog.info(`Spelling corrected (processMessageActivity): ${data}`);
GBLog.info(`Spelling>: ${data}`);
text = data;
}
}

View file

@ -1363,8 +1363,6 @@ export class GBMinService {
step.context.activity['text'] = text;
step.context.activity['originalText'] = originalText;
GBLog.info(`Text>: ${text}.`);
if (user.agentMode === 'self') {
const manualUser = await sec.getUserFromAgentSystemId(user.userSystemId);