Skip to content

Commit

Permalink
fix(core.gbapp): More information on bot creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 28, 2022
1 parent 3dee5ef commit e07152b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class GBDeployer implements IGBDeployer {
/**
* Deploys a new blank bot to the database, cognitive services and other services.
*/
public async deployBlankBot(botId: string) {
public async deployBlankBot(botId: string, mobile: string = null, email: string = null) {

// Creates a new row on the GuaribasInstance table.

Expand Down Expand Up @@ -231,6 +231,7 @@ export class GBDeployer implements IGBDeployer {
instance.whatsappServiceKey = bootInstance.whatsappServiceKey;
instance.whatsappServiceNumber = bootInstance.whatsappServiceNumber;
instance.whatsappServiceUrl = bootInstance.whatsappServiceUrl;
instance.params = JSON.stringify({ 'Can Publish': mobile, 'Admin Notify E-mail': email });

// Saves bot information to the store.

Expand Down Expand Up @@ -517,11 +518,11 @@ export class GBDeployer implements IGBDeployer {
Fs.utimesSync(itemPath,
new Date(), new Date(item.lastModifiedDateTime));
}
else{
else {
GBLog.info(`Local is up to date: ${itemPath}...`);
}
}
});
});
}
}
/**
Expand Down Expand Up @@ -808,7 +809,7 @@ export class GBDeployer implements IGBDeployer {
// Install modules and compiles the web app.

GBLog.info(`Installing modules default.gbui (It may take a few minutes)...`);

child_process.execSync(`${npm} install`, { cwd: root });

GBLog.info(`Transpiling default.gbui...`);
Expand Down

0 comments on commit e07152b

Please sign in to comment.