Skip to content

Commit b5863b9

Browse files
committed
get account info from client
Co-authored-by: Zoey Lan <[email protected]>
1 parent 18e783a commit b5863b9

File tree

1 file changed

+1
-2
lines changed
  • packages/app/src/cli/services/dev

1 file changed

+1
-2
lines changed

Diff for: packages/app/src/cli/services/dev/fetch.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ export async function fetchOrganizations(): Promise<Organization[]> {
9191

9292
if (organizations.length === 0) {
9393
const developerPlatformClient = selectDeveloperPlatformClient()
94-
const session = await developerPlatformClient.session()
95-
const accountInfo = await fetchCurrentAccountInformation(developerPlatformClient, session.userId)
94+
const accountInfo = await developerPlatformClient.accountInfo()
9695
throw new NoOrgError(accountInfo)
9796
}
9897
return organizations

0 commit comments

Comments
 (0)