We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f0928 commit 5669609Copy full SHA for 5669609
src/helpers/connectionOptions.ts
@@ -30,17 +30,8 @@ export async function setAppNameParamIfMissing({
30
return connectionStringUrl.toString();
31
}
32
33
- // Get deviceId if not provided
34
- let deviceId = components.deviceId;
35
- if (!deviceId) {
36
- deviceId = await getDeviceIdForConnection();
37
- }
38
-
39
- // Get clientName if not provided
40
- let clientName = components.clientName;
41
- if (!clientName) {
42
- clientName = "unknown";
43
+ const deviceId = components.deviceId || (await getDeviceIdForConnection());
+ const clientName = components.clientName || "unknown";
44
45
// Build the extended appName format: appName--deviceId--clientName
46
const extendedAppName = `${components.appName}--${deviceId}--${clientName}`;
0 commit comments