Skip to content

Commit

Permalink
remove deployment.update() override
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-platform committed Sep 12, 2023
1 parent c898295 commit 1949db0
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 1949db0

Please sign in to comment.