fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
2 changed files with 6 additions and 0 deletions
Showing only changes of commit 1c41c9b915 - Show all commits

View file

@ -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');

View file

@ -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'),