@@ -74,7 +74,7 @@ export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
7474 const jobId = cache . resolveLatest ( flags [ 'use-most-recent' ] , flags [ 'job-id' ] , false ) ;
7575
7676 const deployOpts = cache . get ( jobId ) ?? { } ;
77- const waitDuration = flags [ 'wait' ] ;
77+ const wait = flags [ 'wait' ] ;
7878 const org = flags [ 'target-org' ] ?? ( await Org . create ( { aliasOrUsername : deployOpts [ 'target-org' ] } ) ) ;
7979
8080 // if we're using mdapi we won't have a component set
@@ -85,12 +85,12 @@ export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
8585 try {
8686 this . project = await SfProject . resolve ( ) ;
8787 const sourcepath = this . project . getUniquePackageDirectories ( ) . map ( ( pDir ) => pDir . fullPath ) ;
88- componentSet = await buildComponentSet ( { 'source-dir' : sourcepath , wait : waitDuration } ) ;
88+ componentSet = await buildComponentSet ( { 'source-dir' : sourcepath , wait } ) ;
8989 } catch ( err ) {
9090 // ignore the error. this was just to get improved command output.
9191 }
9292 } else {
93- componentSet = await buildComponentSet ( { ...deployOpts , wait : waitDuration } ) ;
93+ componentSet = await buildComponentSet ( { ...deployOpts , wait } ) ;
9494 }
9595 }
9696 const mdapiDeploy = new MetadataApiDeploy ( {
@@ -117,11 +117,11 @@ export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
117117 } ;
118118
119119 let result : DeployResult ;
120- if ( waitDuration ) {
120+ if ( wait ) {
121121 // poll for deploy results
122122 try {
123123 new DeployProgress ( mdapiDeploy , this . jsonEnabled ( ) ) . start ( ) ;
124- result = await mdapiDeploy . pollStatus ( 500 , waitDuration . seconds ) ;
124+ result = await mdapiDeploy . pollStatus ( 500 , wait . seconds ) ;
125125 } catch ( error ) {
126126 if ( error instanceof Error && error . message . includes ( 'The client has timed out' ) ) {
127127 this . debug ( '[project deploy report] polling timed out. Requesting status...' ) ;
0 commit comments