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 2f64aa1 commit 2555e1aCopy full SHA for 2555e1a
src/shared/orgListUtil.ts
@@ -132,9 +132,9 @@ export class OrgListUtil {
132
}
133
// Theory: within <orgId>.json, if the userId is the first entry, that's the primary username.
134
if (orgFileNames.includes(orgFileName)) {
135
- const orgFileContent = JSON.parse(
136
- await fs.readFile(join(Global.SFDX_STATE_FOLDER, orgFileName), 'utf8')
137
- ) as { usernames: string[] };
+ const orgFileContent = JSON.parse(await fs.readFile(join(Global.SFDX_DIR, orgFileName), 'utf8')) as {
+ usernames: string[];
+ };
138
const usernames = orgFileContent.usernames;
139
if (usernames && usernames[0] === auth.getFields().username) {
140
return auth;
0 commit comments