From 7a27393b92d2fdcf805ca2bc554664327ec0f10d Mon Sep 17 00:00:00 2001 From: Guillaume ROUCHON Date: Mon, 9 Mar 2020 08:18:42 +0100 Subject: [PATCH] Initialize config before set profileQueryEndpoint --- Library/Config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Config.ts b/Library/Config.ts index 2869a10fa..46e7be19c 100644 --- a/Library/Config.ts +++ b/Library/Config.ts @@ -83,11 +83,11 @@ class Config { this.setCorrelationId = (correlationId) => this.correlationId = correlationId; - this.profileQueryEndpoint = csCode.ingestionendpoint || csEnv.ingestionendpoint || process.env[Config.ENV_profileQueryEndpoint] || this.endpointBase; this.proxyHttpUrl = process.env[Config.ENV_http_proxy] || undefined; this.proxyHttpsUrl = process.env[Config.ENV_https_proxy] || undefined; this.httpAgent = undefined; this.httpsAgent = undefined; + this.profileQueryEndpoint = csCode.ingestionendpoint || csEnv.ingestionendpoint || process.env[Config.ENV_profileQueryEndpoint] || this.endpointBase; this._quickPulseHost = csCode.liveendpoint || csEnv.liveendpoint || process.env[Config.ENV_quickPulseHost] || Constants.DEFAULT_LIVEMETRICS_HOST; // Parse quickPulseHost if it startswith http(s):// if (this._quickPulseHost.match(/^https?:\/\//)) {