fix(all): Fix in bot proxy outdated columns.
This commit is contained in:
parent
841588ca95
commit
1c41c9b915
2 changed files with 6 additions and 0 deletions
|
@ -266,6 +266,11 @@ export class AzureDeployerService implements IGBInstallationDeployer {
|
|||
}
|
||||
|
||||
public async updateBotProxy(botId: string, group: string, endpoint: string) {
|
||||
if (!await this.botExists(botId)) {
|
||||
GBLog.error(`Bot ${botId} does not exist on cloud.`);
|
||||
|
||||
return;
|
||||
}
|
||||
const baseUrl = `https://management.azure.com/`;
|
||||
const username = GBConfigService.get('CLOUD_USERNAME');
|
||||
const password = GBConfigService.get('CLOUD_PASSWORD');
|
||||
|
|
|
@ -433,6 +433,7 @@ ENDPOINT_UPDATE=true
|
|||
await CollectionUtil.asyncForEach(instances, async instance => {
|
||||
GBLog.info(`Updating bot endpoint for ${instance.botId}...`);
|
||||
try {
|
||||
|
||||
await installationDeployer.updateBotProxy(
|
||||
instance.botId,
|
||||
GBConfigService.get('CLOUD_GROUP'),
|
||||
|
|
Loading…
Add table
Reference in a new issue