Skip to content

Commit b4ec86d

Browse files
committed
fix: add message to sandbox response
1 parent ff8e1d4 commit b4ec86d

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

schemas/org-create-sandbox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"SandboxUsername": {
1010
"type": "string"
1111
},
12+
"Message": {
13+
"type": "string"
14+
},
1215
"Id": {
1316
"type": "string"
1417
},

schemas/org-refresh-sandbox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"SandboxUsername": {
1010
"type": "string"
1111
},
12+
"Message": {
13+
"type": "string"
14+
},
1215
"Id": {
1316
"type": "string"
1417
},

schemas/org-resume-sandbox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"SandboxUsername": {
1010
"type": "string"
1111
},
12+
"Message": {
13+
"type": "string"
14+
},
1215
"Id": {
1316
"type": "string"
1417
},

src/commands/org/resume/sandbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default class ResumeSandbox extends SandboxCommandBase<SandboxCommandResp
168168
void lifecycle.emit(SandboxEvents.EVENT_ASYNC_RESULT, undefined);
169169
process.exitCode = 68;
170170
const response = this.getSandboxCommandResponse();
171-
response.message = errMessage;
171+
response.Message = errMessage;
172172
return response;
173173
} else if (
174174
this.latestSandboxProgressObj &&
@@ -179,7 +179,7 @@ export default class ResumeSandbox extends SandboxCommandBase<SandboxCommandResp
179179
) {
180180
process.exitCode = 68;
181181
const response = this.getSandboxCommandResponse();
182-
response.message = errMessage;
182+
response.Message = errMessage;
183183
return response;
184184
}
185185
throw err;

src/shared/sandboxCommandBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-org', 'sandboxbase');
3636

3737
export type SandboxCommandResponse = SandboxProcessObject & {
3838
SandboxUsername?: string;
39-
message?: string;
39+
Message?: string;
4040
};
4141

4242
export abstract class SandboxCommandBase<T> extends SfCommand<T> {

0 commit comments

Comments
 (0)