forked from cerc-io/snowballtools-base
feat: submit delete deployment request
doesn't appear to work when the deployment is current?
This commit is contained in:
@@ -720,8 +720,16 @@ export class Service {
|
||||
}
|
||||
|
||||
async deleteDeployment (deploymentId: string): Promise<boolean> {
|
||||
const result = await this.registry.createApplicationDeploymentRemovalRequest({ deploymentId });
|
||||
return (result !== undefined || result !== null);
|
||||
const deployment = await this.db.getDeployment({
|
||||
where: {
|
||||
id: deploymentId
|
||||
}
|
||||
});
|
||||
if (deployment && deployment.applicationDeploymentRecordId) {
|
||||
const result = await this.registry.createApplicationDeploymentRemovalRequest({ deploymentId: deployment.applicationDeploymentRecordId });
|
||||
return (result !== undefined || result !== null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
async addDomain (
|
||||
|
||||
Reference in New Issue
Block a user