fix(core.gbapp): Self-replication on Azure #106

Merged
rodrigorodriguez merged 2 commits from master into master 2019-06-05 22:04:25 +00:00
Showing only changes of commit 4d484d0a67 - Show all commits

View file

@ -377,7 +377,7 @@ export class GBMinService {
if (p.getDialogs !== undefined) {
const dialogs = p.getDialogs(min);
dialogs.forEach(dialog => {
min.dialogs.add(new WaterfallDialog(dialog.name, dialog.waterfall));
min.dialogs.add(new WaterfallDialog(dialog.id, dialog.waterfall));
});
}
}, this);
@ -497,6 +497,9 @@ export class GBMinService {
min.sandBoxMap[mainMethod].step = step;
min.sandBoxMap[mainMethod][mainMethod].bind(min.sandBoxMap[mainMethod]);
await min.sandBoxMap[mainMethod][mainMethod]();
} else if (context.activity.text.charAt(0) === '/') {
await step.beginDialog(context.activity.text);
} else if (context.activity.text === 'admin') {
await step.beginDialog('/admin');