Skip to content

Commit d24ada6

Browse files
committed
rename to promotedChannelSequence
1 parent b87bfd6 commit d24ada6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/channels.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ export async function pollForAirgapReleaseStatus(vendorPortalApi: VendorPortalAp
157157
export async function getDownloadUrlAirgapBuildRelease(vendorPortalApi: VendorPortalApi, appId: string, channelId: string, releaseSequence: number): Promise<string> {
158158
const release = await getAirgapBuildRelease(vendorPortalApi, appId, channelId, releaseSequence);
159159
const http = await vendorPortalApi.client();
160-
const uri = `${vendorPortalApi.endpoint}/app/${appId}/channel/${channelId}/airgap/download-url?channelSequence=${release.channelSequence}`;
161-
console.log(`Getting download url for airgapped build release ${releaseSequence} from ${uri}`);
160+
const uri = `${vendorPortalApi.endpoint}/app/${appId}/channel/${channelId}/airgap/download-url?channelSequence=${release.promotedChannelSequence}`;
162161
const res = await http.get(uri);
163162

164163
if (res.message.statusCode != 200) {
@@ -183,7 +182,7 @@ async function getAirgapBuildRelease(vendorPortalApi: VendorPortalApi, appId: st
183182
const release = body.releases.find((r: any) => r.sequence === releaseSequence);
184183
return {
185184
sequence: release.sequence,
186-
channelSequence: release.channelSequence,
185+
promotedChannelSequence: release.channelSequence,
187186
airgapBuildStatus: release.airgapBuildStatus
188187
};
189188
}

src/releases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { zonedTimeToUtc } from "date-fns-tz";
1010

1111
export interface Release {
1212
sequence: string;
13-
channelSequence?: string;
13+
promotedChannelSequence?: string;
1414
charts?: ReleaseChart[];
1515
airgapBuildStatus?: string;
1616
}

0 commit comments

Comments
 (0)