@@ -360,9 +360,9 @@ export async function pollForAirgapReleaseStatus(vendorPortalApi: VendorPortalAp
360360 const iterations = ( timeout * 1000 ) / sleeptimeMs ;
361361 for ( let i = 0 ; i < iterations ; i ++ ) {
362362 try {
363- const release = await getAirgapBuildRelease ( vendorPortalApi , appId , channelId , releaseSequence ) ;
364- if ( release . airgapBuildStatus === expectedStatus ) {
365- return release . airgapBuildStatus ;
363+ const release = await getAirgapBuildRelease ( vendorPortalApi , appId , channelId , releaseSequence ) ;
364+ if ( release . airgapBuildStatus === expectedStatus ) {
365+ return release . airgapBuildStatus ;
366366 }
367367 if ( release . airgapBuildStatus === "failed" ) {
368368 console . debug ( `Airgapped build release ${ releaseSequence } failed` ) ;
@@ -386,7 +386,6 @@ export async function pollForAirgapReleaseStatus(vendorPortalApi: VendorPortalAp
386386 }
387387}
388388
389-
390389async function getAirgapBuildRelease ( vendorPortalApi : VendorPortalApi , appId : string , channelId : string , releaseSequence : number ) : Promise < Release > {
391390 const http = await vendorPortalApi . client ( ) ;
392391 const uri = `${ vendorPortalApi . endpoint } /app/${ appId } /channel/${ channelId } /releases` ;
@@ -401,6 +400,6 @@ async function getAirgapBuildRelease(vendorPortalApi: VendorPortalApi, appId: st
401400 const release = body . releases . find ( ( r : any ) => r . sequence === releaseSequence ) ;
402401 return {
403402 sequence : release . sequence ,
404- airgapBuildStatus : release . airgapBuildStatus ,
405- }
403+ airgapBuildStatus : release . airgapBuildStatus
404+ } ;
406405}
0 commit comments