Skip to content

Commit

Permalink
fix(voicemail): process-check-for-ms-teams-integration (webex#3872)
Browse files Browse the repository at this point in the history
  • Loading branch information
akulakum authored Sep 30, 2024
1 parent 1a8e376 commit bf7c1ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/calling/src/Metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class MetricManager implements IMetricManager {
fields: {
device_url: this.deviceInfo?.device?.clientDeviceUri,
calling_sdk_version:
process && process.env.CALLING_SDK_VERSION
typeof process !== 'undefined' && process.env.CALLING_SDK_VERSION
? process.env.CALLING_SDK_VERSION
: VERSION,
},
Expand All @@ -306,7 +306,10 @@ class MetricManager implements IMetricManager {
},
fields: {
device_url: this.deviceInfo?.device?.clientDeviceUri,
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
calling_sdk_version:
typeof process !== 'undefined' && process.env.CALLING_SDK_VERSION
? process.env.CALLING_SDK_VERSION
: VERSION,
},
type,
};
Expand Down

0 comments on commit bf7c1ba

Please sign in to comment.