From 8616d60691ab7d3af28993413efc9031c57baa6f Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Fri, 13 Oct 2023 16:14:50 -0300 Subject: [PATCH] new(basic.gblib): Allow TABLE keyword multiple times per file #383. --- .../services/AzureDeployerService.ts | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts index 6c0c16fd..6ecb7a33 100644 --- a/packages/azuredeployer.gbapp/services/AzureDeployerService.ts +++ b/packages/azuredeployer.gbapp/services/AzureDeployerService.ts @@ -572,8 +572,7 @@ export class AzureDeployerService implements IGBInstallationDeployer { luisAppIds: [nlpAppId], luisKey: nlpKey, msaAppId: appId, - msaAppPassword: appPassword, - configuredChannels: ['webchat'] + msaAppPassword: appPassword } }; @@ -588,19 +587,20 @@ export class AzureDeployerService implements IGBInstallationDeployer { return; } - try { - //tslint:disable-next-line:max-line-length - query = `subscriptions/${subscriptionId}/resourceGroups/${group}/providers/Microsoft.BotService/botServices/${botId}/channels/WebChatChannel/listChannelWithKeys?api-version=${this.apiVersion}`; - url = urlJoin(baseUrl, query); - req = AzureDeployerService.createRequestObject(url, accessToken, 'POST', JSON.stringify(parameters)); - const resChannel = await httpClient.sendRequest(req); - const key = JSON.parse(resChannel.bodyAsText).properties.properties.sites[0].key; - instance.webchatKey = key; - instance.whatsappBotKey = key; - resolve(instance); - } catch (error) { - reject(error); - } + // MSFT has changed without warnings. + // try { + // //tslint:disable-next-line:max-line-length + // query = `subscriptions/${subscriptionId}/resourceGroups/${group}/providers/Microsoft.BotService/botServices/${botId}/channels/WebChatChannel/listChannelWithKeys?api-version=${this.apiVersion}`; + // url = urlJoin(baseUrl, query); + // req = AzureDeployerService.createRequestObject(url, accessToken, 'POST', JSON.stringify(parameters)); + // const resChannel = await httpClient.sendRequest(req); + // const key = JSON.parse(resChannel.bodyAsText).properties.properties.sites[0].key; + // instance.webchatKey = key; + // instance.whatsappBotKey = key; + // resolve(instance); + // } catch (error) { + // reject(error); + // } }); }