Skip to content

Commit

Permalink
fixup CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amarthadan committed Sep 29, 2022
1 parent 06cf0c2 commit 67fb485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/airnode-deployer/src/infrastructure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export type Deployment = {
versions?: DeploymentVersion[];
};

// If deploymentId is provided tries fetch only that one deployment and finishes early when found
// If deploymentId is provided it tries to fetch only that one deployment and returns early when found
async function fetchDeployments(cloudProvider: CloudProvider['type'], deploymentId?: string) {
const deployments: Deployment[] = [];

Expand Down Expand Up @@ -655,7 +655,7 @@ export async function deploymentInfo(deploymentId: string) {
}

const deployment = goCloudDeploymentInfo.data[0];
const { id, region, airnodeAddress, stage, airnodeVersion, lastUpdate, versions } = deployment as Deployment;
const { id, region, airnodeAddress, stage, airnodeVersion, lastUpdate, versions } = deployment;
const sortedVersions = sortBy(versions, 'timestamp').reverse();
const currentVersionId = sortedVersions.find((version) => version.timestamp === lastUpdate)!.id;
const table = new Table({
Expand Down

0 comments on commit 67fb485

Please sign in to comment.