fix(core.gbapp): Field active is now being filled at instance creation.

This commit is contained in:
Rodrigo Rodriguez 2020-10-21 13:42:48 -03:00
parent 9fec9afdf7
commit aee2c17d4c
5 changed files with 7 additions and 5 deletions

6
package-lock.json generated
View file

@ -4608,9 +4608,9 @@
} }
}, },
"botlib": { "botlib": {
"version": "1.6.3", "version": "1.6.5",
"resolved": "https://registry.npmjs.org/botlib/-/botlib-1.6.3.tgz", "resolved": "https://registry.npmjs.org/botlib/-/botlib-1.6.5.tgz",
"integrity": "sha512-eD4EiJrUr0Dfj9XBL3q4oDuPcAjyTaCYySkG87mPaovbSh3uDIJbnnuEXfhTMpwY/u0kniMKa0RtFXIkfyFS2A==", "integrity": "sha512-0K+BNnHGwryID0MCG8s3s9CVGzjyBLph7ngtZp1oBNwvfcMinGGiOtbcV3CRHdiOypPr/FFuKyqe+kBVTbOtlQ==",
"requires": { "requires": {
"async": "3.1.0", "async": "3.1.0",
"botbuilder": "4.7.0", "botbuilder": "4.7.0",

View file

@ -69,7 +69,7 @@
"botbuilder-ai": "4.7.0", "botbuilder-ai": "4.7.0",
"botbuilder-dialogs": "4.7.0", "botbuilder-dialogs": "4.7.0",
"botframework-connector": "4.7.0", "botframework-connector": "4.7.0",
"botlib": "1.6.3", "botlib": "1.6.5",
"cli-spinner": "0.2.10", "cli-spinner": "0.2.10",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"dotenv-extended": "2.8.0", "dotenv-extended": "2.8.0",

View file

@ -104,6 +104,7 @@ export class StartDialog {
const instance = <IGBInstance>{}; const instance = <IGBInstance>{};
instance.botId = botId; instance.botId = botId;
instance.state ='active';
instance.cloudUsername = username; instance.cloudUsername = username;
instance.cloudPassword = password; instance.cloudPassword = password;
instance.cloudSubscriptionId = subscriptionId; instance.cloudSubscriptionId = subscriptionId;

View file

@ -464,7 +464,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
subscriptionId: string subscriptionId: string
) { ) {
const instance = <IGBInstance>{}; const instance = <IGBInstance>{};
instance.state = 'active';
instance.botId = title; instance.botId = title;
instance.cloudUsername = username; instance.cloudUsername = username;
instance.cloudPassword = password; instance.cloudPassword = password;

View file

@ -64,6 +64,7 @@ export class GBImporter {
instance = await this.core.loadInstanceByBotId(botId); instance = await this.core.loadInstanceByBotId(botId);
if (!instance) { if (!instance) {
instance = <IGBInstance>{}; instance = <IGBInstance>{};
instance.state = 'active';
instance.adminPass = GBConfigService.get('ADMIN_PASS'); instance.adminPass = GBConfigService.get('ADMIN_PASS');
instance.botId = GBConfigService.get('BOT_ID'); instance.botId = GBConfigService.get('BOT_ID');
instance.cloudSubscriptionId = GBConfigService.get('CLOUD_SUBSCRIPTIONID'); instance.cloudSubscriptionId = GBConfigService.get('CLOUD_SUBSCRIPTIONID');