Skip to content

Commit

Permalink
Refer to User instead of Partners account because we may not be on Pa…
Browse files Browse the repository at this point in the history
…rtners
  • Loading branch information
amcaplan committed Jan 9, 2025
1 parent 9373962 commit e7c7288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app/src/cli/services/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ class AppInfo {
updateUrls = this.app.configuration.build.automatically_update_urls_on_dev ? 'Yes' : 'No'
}

let partnersAccountInfo: [string, string] = ['Partners account', 'unknown']
let userAccountInfo: [string, string] = ['User', 'unknown']
const retrievedAccountInfo = await this.options.developerPlatformClient.accountInfo()
if (isServiceAccount(retrievedAccountInfo)) {
partnersAccountInfo = ['Service account', retrievedAccountInfo.orgName]
userAccountInfo = ['Service account', retrievedAccountInfo.orgName]
} else if (isUserAccount(retrievedAccountInfo)) {
partnersAccountInfo = ['Partners account', retrievedAccountInfo.email]
userAccountInfo[1] = retrievedAccountInfo.email
}

return [
Expand All @@ -155,7 +155,7 @@ class AppInfo {
['Access scopes', getAppScopes(this.app.configuration)],
['Dev store', this.app.configuration.build?.dev_store_url ?? NOT_CONFIGURED_TOKEN],
['Update URLs', updateUrls],
partnersAccountInfo,
userAccountInfo,
],
{isFirstItem: true},
),
Expand Down

0 comments on commit e7c7288

Please sign in to comment.