Skip to content

Commit

Permalink
Merge pull request #275 from platformsh/simplify-deployment-update
Browse files Browse the repository at this point in the history
remove deployment.update() override
  • Loading branch information
tlattimore authored Sep 13, 2023
2 parents 706d87f + 1949db0 commit 2df7260
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/model/Deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ export type DeploymentGetParams = {
};

export type DeploymentUpdateParams = {
projectId: string;
environmentId: string;
services?: any;
webapps?: any;
workers?: any;
};

type RunRuntimeOpParams = {
Expand Down Expand Up @@ -117,15 +116,4 @@ export default class Deployment extends Ressource {
return activities[0];
});
}

async update(params: DeploymentUpdateParams, customUrl?: string) {
const { projectId, environmentId, ...data } = params;
const { api_url } = getConfig();

const url =
customUrl ??
`${api_url}/projects/${projectId}/environments/${environmentId}/deployments/next`;

return super.update(data, url);
}
}

0 comments on commit 2df7260

Please sign in to comment.