Skip to content

Commit

Permalink
Merge pull request #1276 from salesforcecli/sl/SbxError
Browse files Browse the repository at this point in the history
Sl/sbx error
  • Loading branch information
WillieRuemmele authored Dec 4, 2024
2 parents 61ff215 + 66e57cd commit d5929d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/sandboxCommandBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export abstract class SandboxCommandBase<T> extends SfCommand<T> {
// if user hasn't opted out of tracking, and sandbox type supports it, verify that prod org supports tracking-enabled sandboxes
const sourceTrackingSettings = await this.prodOrg
.getConnection()
.metadata.read('SourceTrackingSettings', 'SourceTrackingSettings');
if (sourceTrackingSettings.enableSourceTrackingSandboxes !== true) {
.singleRecordQuery('SELECT IsSourceTrackingSandboxesEnabled FROM SourceTrackingSettings', { tooling: true });
if (sourceTrackingSettings?.IsSourceTrackingSandboxesEnabled !== true) {
return false;
}
}
Expand Down

0 comments on commit d5929d2

Please sign in to comment.