Skip to content

Commit

Permalink
fix(basic.gblib): Traces to solve /answer bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 31, 2021
1 parent 6f3d13d commit db07689
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core.gbapp/dialogs/WelcomeDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

import { BotAdapter } from 'botbuilder';
import { WaterfallDialog } from 'botbuilder-dialogs';
import { GBMinInstance, IGBDialog } from 'botlib';
import { GBLog, GBMinInstance, IGBDialog } from 'botlib';
import { GBServer } from '../../../src/app';
import { GBConversationalService } from '../services/GBConversationalService';
import { Messages } from '../strings';
Expand Down Expand Up @@ -97,6 +97,7 @@ export class WelcomeDialog extends IGBDialog {
step.context.activity.type === 'message' &&
step.context.activity.text !== ''
) {
GBLog.info(`/answer being called from WelcomeDialog.`);
await step.replaceDialog('/answer', { query: step.context.activity.text });
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@ export class GBMinService {
nextDialog = await e.onExchangeData(min, 'handleAnswer', data);
});
data.step = null;
GBLog.info(`/answer being called from processMessageActivity.`);
await step.beginDialog(nextDialog ? nextDialog : '/answer', {
data: data,
query: text,
Expand Down
1 change: 1 addition & 0 deletions packages/kb.gbapp/dialogs/AskDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export class AskDialog extends IGBDialog {
}
});
data.step = null;
GBLog.info(`/answer being called from getAskDialog.`);
await step.beginDialog(nextDialog ? nextDialog : '/answer', {
data: data,
query: text,
Expand Down

0 comments on commit db07689

Please sign in to comment.