new(basic.gblib): Allow TABLE keyword multiple times per file #383.

This commit is contained in:
Rodrigo Rodriguez 2023-10-13 16:14:50 -03:00
parent 568c6724da
commit 8616d60691

View file

@ -572,8 +572,7 @@ export class AzureDeployerService implements IGBInstallationDeployer {
luisAppIds: [nlpAppId], luisAppIds: [nlpAppId],
luisKey: nlpKey, luisKey: nlpKey,
msaAppId: appId, msaAppId: appId,
msaAppPassword: appPassword, msaAppPassword: appPassword
configuredChannels: ['webchat']
} }
}; };
@ -588,19 +587,20 @@ export class AzureDeployerService implements IGBInstallationDeployer {
return; return;
} }
try { // MSFT has changed without warnings.
//tslint:disable-next-line:max-line-length // try {
query = `subscriptions/${subscriptionId}/resourceGroups/${group}/providers/Microsoft.BotService/botServices/${botId}/channels/WebChatChannel/listChannelWithKeys?api-version=${this.apiVersion}`; // //tslint:disable-next-line:max-line-length
url = urlJoin(baseUrl, query); // query = `subscriptions/${subscriptionId}/resourceGroups/${group}/providers/Microsoft.BotService/botServices/${botId}/channels/WebChatChannel/listChannelWithKeys?api-version=${this.apiVersion}`;
req = AzureDeployerService.createRequestObject(url, accessToken, 'POST', JSON.stringify(parameters)); // url = urlJoin(baseUrl, query);
const resChannel = await httpClient.sendRequest(req); // req = AzureDeployerService.createRequestObject(url, accessToken, 'POST', JSON.stringify(parameters));
const key = JSON.parse(resChannel.bodyAsText).properties.properties.sites[0].key; // const resChannel = await httpClient.sendRequest(req);
instance.webchatKey = key; // const key = JSON.parse(resChannel.bodyAsText).properties.properties.sites[0].key;
instance.whatsappBotKey = key; // instance.webchatKey = key;
resolve(instance); // instance.whatsappBotKey = key;
} catch (error) { // resolve(instance);
reject(error); // } catch (error) {
} // reject(error);
// }
}); });
} }