diff --git a/src/model/Deployment.ts b/src/model/Deployment.ts index b154a104..98ccd436 100644 --- a/src/model/Deployment.ts +++ b/src/model/Deployment.ts @@ -16,10 +16,9 @@ export type DeploymentGetParams = { }; export type DeploymentUpdateParams = { - projectId: string; - environmentId: string; services?: any; webapps?: any; + workers?: any; }; type RunRuntimeOpParams = { @@ -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); - } }