Skip to content

Commit 7b724e2

Browse files
aweiss-devCopilot
andauthored
runfix(countly): change url [WPB-18185] (#19863)
* runfix(countly): change url * Update src/script/Config.ts Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent e08a258 commit 7b724e2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/script/Config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const config = {
9999

100100
AVS_VERSION: packageJson.dependencies['@wireapp/avs'],
101101

102-
COUNTLY_SERVER_URL: 'https://countly.wire.com/',
102+
COUNTLY_SERVER_URL: 'https://wire.count.ly/',
103103
GET_WIRE_URL: 'https://get.wire.com',
104104
} as const;
105105

src/script/repositories/tracking/EventTrackingRepository.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export class EventTrackingRepository {
223223

224224
this.isProductReportingActivated = true;
225225

226-
const {COUNTLY_ENABLE_LOGGING, VERSION, COUNTLY_API_KEY} = Config.getConfig();
226+
const {COUNTLY_ENABLE_LOGGING, VERSION, COUNTLY_API_KEY, COUNTLY_SERVER_URL} = Config.getConfig();
227227

228228
// Initialize telemetry if it is not initialized yet
229229
if (!this.telemetryInitialized) {
@@ -237,7 +237,7 @@ export class EventTrackingRepository {
237237
provider: {
238238
apiKey: COUNTLY_API_KEY,
239239
enableLogging: COUNTLY_ENABLE_LOGGING,
240-
serverUrl: 'https://countly.wire.com/',
240+
serverUrl: COUNTLY_SERVER_URL,
241241
autoErrorTracking: false,
242242
},
243243
});
@@ -256,6 +256,11 @@ export class EventTrackingRepository {
256256

257257
const device_id = Boolean(trackingId.length) ? trackingId : this.telemetryDeviceId;
258258

259+
if (!device_id) {
260+
this.telemetryLogger.error('Telemetry device id is not defined');
261+
return;
262+
}
263+
259264
telemetry.changeDeviceId(device_id);
260265
telemetry.disableOfflineMode(device_id);
261266

0 commit comments

Comments
 (0)