fix(core.gbapp): More information on bot creation.
This commit is contained in:
parent
3dee5efc3a
commit
e07152bc07
1 changed files with 5 additions and 4 deletions
|
@ -202,7 +202,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
/**
|
/**
|
||||||
* Deploys a new blank bot to the database, cognitive services and other services.
|
* 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.
|
// Creates a new row on the GuaribasInstance table.
|
||||||
|
|
||||||
|
@ -231,6 +231,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
instance.whatsappServiceKey = bootInstance.whatsappServiceKey;
|
instance.whatsappServiceKey = bootInstance.whatsappServiceKey;
|
||||||
instance.whatsappServiceNumber = bootInstance.whatsappServiceNumber;
|
instance.whatsappServiceNumber = bootInstance.whatsappServiceNumber;
|
||||||
instance.whatsappServiceUrl = bootInstance.whatsappServiceUrl;
|
instance.whatsappServiceUrl = bootInstance.whatsappServiceUrl;
|
||||||
|
instance.params = JSON.stringify({ 'Can Publish': mobile, 'Admin Notify E-mail': email });
|
||||||
|
|
||||||
// Saves bot information to the store.
|
// Saves bot information to the store.
|
||||||
|
|
||||||
|
@ -517,7 +518,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
Fs.utimesSync(itemPath,
|
Fs.utimesSync(itemPath,
|
||||||
new Date(), new Date(item.lastModifiedDateTime));
|
new Date(), new Date(item.lastModifiedDateTime));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
GBLog.info(`Local is up to date: ${itemPath}...`);
|
GBLog.info(`Local is up to date: ${itemPath}...`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue