From 6302ade0fe4a29927fa53d25a5bcf0ca6fbf1a86 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 5df2fd0f..da4a4933 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 dac4cc55..a9607ae0 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); }