Skip to content

Commit

Permalink
refactor: refactor for SDR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Jun 8, 2021
1 parent 31f20cf commit 612d15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/force/source/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export class Deploy extends DeployCommand {
testLevel: this.getFlag<TestLevel>('testlevel'),
},
});
this.asyncDeployResult = { id: deploy.getId() };
this.updateDeployId(deploy.getId());
this.asyncDeployResult = { id: deploy.id };
this.updateDeployId(deploy.id);

if (!this.isAsync) {
// if SFDX_USE_PROGRESS_BAR is unset or true (default true) AND we're not print JSON output
Expand Down
2 changes: 1 addition & 1 deletion test/commands/source/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('force:source:deploy', () => {
pollStub = sandbox.stub().resolves(deployResult);
deployStub = sandbox.stub().resolves({
pollStatus: pollStub,
getId: () => deployResult.response.id,
id: deployResult.response.id,
});
buildComponentSetStub = stubMethod(sandbox, ComponentSetBuilder, 'build').resolves({
deploy: deployStub,
Expand Down

0 comments on commit 612d15c

Please sign in to comment.