From 2b5076a214ea847bd00d49a13d068e2f12e5e739 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 20 Aug 2024 15:49:28 -0300 Subject: [PATCH] new(all): TRUE multicloud. --- directline-3.0.json | 1 + src/util.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/directline-3.0.json b/directline-3.0.json index 5df2fd0fd..da4a49338 100644 --- a/directline-3.0.json +++ b/directline-3.0.json @@ -15,6 +15,7 @@ "url": "https://opensource.org/licenses/MIT" } }, + "host": "directline.botframework.com", "schemes": [ "https" ], diff --git a/src/util.ts b/src/util.ts index dac4cc55e..a9607ae02 100644 --- a/src/util.ts +++ b/src/util.ts @@ -75,10 +75,12 @@ export class GBUtil { } }; if (!GBConfigService.get('STORAGE_NAME')) { - (config['url'] = `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages`), - (config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }]); + config['spec'].url = `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages`, + config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }]; config['openapi'] = '3.0.0'; + delete config['spec'].host; } + return await new SwaggerClient(config); }