Skip to content

Commit 983af78

Browse files
committed
fix: show valid API version during retrieve
1 parent 2234d7b commit 983af78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/project/retrieve/start.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
183183
const retrieveOpts = await buildRetrieveOptions(flags, format, zipFileName, resolvedTargetDir);
184184

185185
this.spinner.status = messages.getMessage('spinner.sending', [
186-
componentSetFromNonDeletes.sourceApiVersion ?? componentSetFromNonDeletes.apiVersion,
186+
componentSetFromNonDeletes.sourceApiVersion ??
187+
componentSetFromNonDeletes.apiVersion ??
188+
flags['target-org'].getConnection().getApiVersion(),
187189
]);
188190

189191
this.retrieveResult = new RetrieveResult({} as MetadataApiRetrieveStatus, componentSetFromNonDeletes);

0 commit comments

Comments
 (0)