File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { Duration } from '@salesforce/kit';
1111import {
1212 AuthInfo ,
1313 ConfigAggregator ,
14- GlobalInfo ,
14+ StateAggregator ,
1515 Messages ,
1616 NamedPackageDir ,
1717 OrgAuthorization ,
@@ -145,8 +145,8 @@ export class MetadataDeployer extends Deployer {
145145
146146 public async promptForUsername ( ) : Promise < string > {
147147 const aliasOrUsername = ConfigAggregator . getValue ( OrgConfigProperties . TARGET_ORG ) ?. value as string ;
148- const globalInfo = await GlobalInfo . getInstance ( ) ;
149- const allAliases = globalInfo . aliases . getAll ( ) ;
148+ const stateAggregator = await StateAggregator . getInstance ( ) ;
149+ const allAliases = stateAggregator . aliases . getAll ( ) ;
150150 let targetOrgAuth : OrgAuthorization ;
151151 // make sure the "target-org" can be used in this deploy
152152 if ( aliasOrUsername ) {
@@ -168,15 +168,15 @@ export class MetadataDeployer extends Deployer {
168168 throw messages . createError ( 'error.UserTerminatedDeployForExpiredOrg' ) ;
169169 }
170170 } else {
171- return globalInfo . aliases . resolveUsername ( aliasOrUsername ) ;
171+ return stateAggregator . aliases . resolveUsername ( aliasOrUsername ) ;
172172 }
173173 }
174174 }
175175 if ( ! aliasOrUsername || targetOrgAuth ?. isExpired ) {
176176 const authorizations = (
177177 await AuthInfo . listAllAuthorizations ( ( orgAuth ) => ! orgAuth . error && orgAuth . isExpired !== true )
178178 ) . map ( ( orgAuth ) => {
179- const org = globalInfo . orgs . get ( orgAuth . username ) ;
179+ const org = stateAggregator . orgs . get ( orgAuth . username ) ;
180180 const timestamp = org . timestamp ? new Date ( org . timestamp as string ) : new Date ( ) ;
181181 return { ...orgAuth , timestamp } as OrgAuthWithTimestamp ;
182182 } ) ;
You can’t perform that action at this time.
0 commit comments