We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd4007c commit 4e241b9Copy full SHA for 4e241b9
1 file changed
lana/src/salesforce/logs/SalesforceConnection.ts
@@ -14,12 +14,12 @@ export async function getSalesforceConnection(wsPath: string): Promise<Connectio
14
const { ConfigAggregator, OrgConfigProperties, Org } = await import('@salesforce/core');
15
16
const aggregator = await ConfigAggregator.create({ projectPath: wsPath });
17
- const usernameOrAlias = aggregator.getPropertyValue(OrgConfigProperties.TARGET_ORG);
+ const aliasOrUsername = aggregator.getPropertyValue<string>(OrgConfigProperties.TARGET_ORG);
18
19
- if (!usernameOrAlias) {
+ if (!aliasOrUsername) {
20
throw new Error('No default org configured for workspace');
21
}
22
23
- const org = await Org.create({ aliasOrUsername: String(usernameOrAlias) });
+ const org = await Org.create({ aliasOrUsername });
24
return org.getConnection();
25
0 commit comments