@salesforce/core 8.32.1 → 8.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/org/authInfo.js +1 -1
- package/package.json +1 -1
package/lib/org/authInfo.js
CHANGED
|
@@ -1045,7 +1045,7 @@ class AuthInfo extends kit_1.AsyncOptionalCreatable {
|
|
|
1045
1045
|
const apiVersion = 'v51.0'; // hardcoding to v51.0 just for this call is okay.
|
|
1046
1046
|
const instance = (0, ts_types_1.ensure)(instanceUrl);
|
|
1047
1047
|
const baseUrl = new sfdcUrl_1.SfdcUrl(instance);
|
|
1048
|
-
const scratchOrgInfoUrl = `${baseUrl.toString()}
|
|
1048
|
+
const scratchOrgInfoUrl = `${baseUrl.toString()}services/data/${apiVersion}/query?q=SELECT%20Id%20FROM%20ScratchOrgInfo%20limit%201`;
|
|
1049
1049
|
const headers = Object.assign({ Authorization: `Bearer ${accessToken}` }, connection_1.SFDX_HTTP_HEADERS);
|
|
1050
1050
|
try {
|
|
1051
1051
|
const res = await new transport_1.default().httpRequest({ url: scratchOrgInfoUrl, method: 'GET', headers });
|