From ecbb035b827462e458dd78d684c0ff645710b30f Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 26 Sep 2023 16:56:29 -0500 Subject: [PATCH] fix: default value for wait on report --- src/commands/project/deploy/report.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/project/deploy/report.ts b/src/commands/project/deploy/report.ts index 043a5fda..7a55a222 100644 --- a/src/commands/project/deploy/report.ts +++ b/src/commands/project/deploy/report.ts @@ -8,6 +8,7 @@ import { Messages, Org, SfProject } from '@salesforce/core'; import { SfCommand, Flags } from '@salesforce/sf-plugins-core'; import { ComponentSet, DeployResult, MetadataApiDeploy } from '@salesforce/source-deploy-retrieve'; +import { Duration } from '@salesforce/kit'; import { buildComponentSet } from '../../../utils/deploy'; import { DeployProgress } from '../../../utils/progressBar'; import { DeployCache } from '../../../utils/deployCache'; @@ -57,15 +58,14 @@ export default class DeployMetadataReport extends SfCommand { summary: messages.getMessage('flags.results-dir.summary'), helpGroup: testFlags, }), - // we want to allow undefined for a simple check deploy status - // eslint-disable-next-line sf-plugin/flag-min-max-default wait: Flags.duration({ char: 'w', summary: deployMessages.getMessage('flags.wait.summary'), description: deployMessages.getMessage('flags.wait.description'), unit: 'minutes', helpValue: '', - min: 1, + min: 0, + default: new Duration(0, Duration.Unit.MINUTES), }), };