Skip to content

Commit

Permalink
Remove unusable plugin install endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarrero committed Jan 23, 2024
1 parent 24ec41b commit 54cec60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
18 changes: 0 additions & 18 deletions lib/EnvoyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,24 +362,6 @@ class EnvoyAPI {
return EnvoyAPI.getDataFromBody(body);
}

/**
* Fetches a plugin install.
*
* @param {number} installId
* @returns {Promise<{}>}
*/
async getPluginInstall(installId) {
return new Promise((resolve, reject) => {
this.request({
method: 'GET',
url: `/api/v2/plugin-services/installs/${installId}`,
}).then(body => resolve(EnvoyAPI.getDataFromBody(body)))
.catch((error) => {
EnvoyAPI.safeRequestsError(error).catch((err) => reject(err));
});
});
}

/**
* Gets the plugin install's config.
*
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envoy/envoy-integrations-sdk",
"version": "1.4.2",
"version": "1.5.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 54cec60

Please sign in to comment.