Skip to content

Commit 2555e1a

Browse files
committed
fix: org list now lists all scratch orgs properly
@W-11507149@
1 parent 2f64aa1 commit 2555e1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shared/orgListUtil.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ export class OrgListUtil {
132132
}
133133
// Theory: within <orgId>.json, if the userId is the first entry, that's the primary username.
134134
if (orgFileNames.includes(orgFileName)) {
135-
const orgFileContent = JSON.parse(
136-
await fs.readFile(join(Global.SFDX_STATE_FOLDER, orgFileName), 'utf8')
137-
) as { usernames: string[] };
135+
const orgFileContent = JSON.parse(await fs.readFile(join(Global.SFDX_DIR, orgFileName), 'utf8')) as {
136+
usernames: string[];
137+
};
138138
const usernames = orgFileContent.usernames;
139139
if (usernames && usernames[0] === auth.getFields().username) {
140140
return auth;

0 commit comments

Comments
 (0)