Skip to content

Commit

Permalink
fix(kb.gbapp): #297 Spellchecker fixed after MSFT changes in service.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Mar 1, 2023
1 parent ec1c38f commit 80853f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 0 additions & 2 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 80853f0

Please sign in to comment.