@envoy/envoy-integrations-sdk 1.4.1 → 1.4.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/EnvoyAPI.js +7 -8
- package/package.json +1 -1
package/lib/EnvoyAPI.js
CHANGED
|
@@ -387,15 +387,14 @@ class EnvoyAPI {
|
|
|
387
387
|
* @returns {Promise<{}>}
|
|
388
388
|
*/
|
|
389
389
|
async getPluginInstallConfig(installId) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
.catch((error) => {
|
|
396
|
-
EnvoyAPI.safeRequestsError(error).catch((err) => reject(err));
|
|
397
|
-
});
|
|
390
|
+
const body = await this.request({
|
|
391
|
+
method: 'GET',
|
|
392
|
+
url: `/api/v2/plugin-services/installs/${installId}/config`,
|
|
393
|
+
}).catch((error) => {
|
|
394
|
+
return EnvoyAPI.safeRequestsError(error);
|
|
398
395
|
});
|
|
396
|
+
|
|
397
|
+
return EnvoyAPI.getDataFromBody(body);
|
|
399
398
|
}
|
|
400
399
|
|
|
401
400
|
/**
|