Skip to content

Commit

Permalink
Modify condition (microsoft#1388)
Browse files Browse the repository at this point in the history
* Modify condition.

* Update concurrency variable.
  • Loading branch information
Igor Krasavin authored Apr 19, 2021
1 parent 2202a7c commit fda0c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/codepush/deployment/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { promiseMap } from "../../../util/misc/promise-map";
import { formatDate } from "./lib/date-helper";

const debug = require("debug")("appcenter-cli:commands:codepush:deployments:list");
const PROMISE_CONCURRENCY = 30;
const PROMISE_CONCURRENCY = 20;

@help("List the deployments associated with an app")
export default class CodePushDeploymentListListCommand extends AppCommand {
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class CodePushDeploymentListListCommand extends AppCommand {
if (formatIsJson()) {
const metricsJSON: models.CodePushReleaseMetric = await this.generateMetricsJSON(deployment, client);

if (metricsJSON) {
if (metricsJSON && deployment.latestRelease) {
deployment.latestRelease.metrics = metricsJSON;
}

Expand Down

0 comments on commit fda0c16

Please sign in to comment.