Skip to content

Commit 4f79db7

Browse files
committed
fix: removed inaccessible fields from sandboxinfo query @W-20690643@
1 parent 286988b commit 4f79db7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/commands/org/refresh/sandbox.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const fields = [
2525
'Id',
2626
'SandboxName', // (string)
2727
'LicenseType', // (string) DEVELOPER | DEVELOPER PRO | PARTIAL | FULL
28-
'TemplateId', // (string) reference to PartitionLevelScheme
28+
// 'TemplateId', // (string) reference to PartitionLevelScheme
2929
'HistoryDays', // (int)
3030
'CopyChatter', // (boolean)
3131
'AutoActivate', // (boolean)
32-
'ApexClassId', // (string) apex class ID
32+
// 'ApexClassId', // (string) apex class ID
3333
'Description', // (string)
3434
'SourceId', // (string) SandboxInfoId as the source org used for a clone
3535
// 'ActivationUserGroupId', // Currently not supported but might be added in API v61.0
@@ -116,6 +116,7 @@ export default class RefreshSandbox extends SandboxCommandBase<SandboxCommandRes
116116
private sbxConfig!: SandboxInfo;
117117

118118
public async run(): Promise<SandboxCommandResponse> {
119+
this.log('asdfasdfasdfasdfasdf');
119120
this.sandboxRequestConfig = await this.getSandboxRequestConfig();
120121
this.flags = (await this.parse(RefreshSandbox)).flags;
121122
this.validateFlags();
@@ -239,6 +240,7 @@ export default class RefreshSandbox extends SandboxCommandBase<SandboxCommandRes
239240
let sandboxInfo: SandboxInfo;
240241
try {
241242
const soql = `SELECT ${fields.join(',')} FROM SandboxInfo WHERE SandboxName='${sbxName}'`;
243+
this.log(`query is ${soql}`);
242244
const sandboxInfoRecord = await prodOrgConnection.singleRecordQuery<SandboxInfoRecord>(soql, { tooling: true });
243245
sandboxInfo = omit(sandboxInfoRecord, 'attributes');
244246
} catch (error: unknown) {

0 commit comments

Comments
 (0)