fix(services): clean up dependent resources during service deletion
This commit is contained in:
@@ -294,6 +294,14 @@ export class CloudlyAppStoreManager {
|
||||
.slice(0, 25);
|
||||
}
|
||||
|
||||
public clearOperationsForService(serviceIdArg: string): void {
|
||||
for (const [operationId, operation] of this.upgradeOperations.entries()) {
|
||||
if (operation.serviceId === serviceIdArg) {
|
||||
this.upgradeOperations.delete(operationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public async startHostedAppUpgrade(serviceIdArg: string, targetVersionArg: string): Promise<IAppStoreUpgradeOperation> {
|
||||
const operation = await this.createUpgradeOperation(serviceIdArg, targetVersionArg);
|
||||
void this.performUpgrade(operation.id).catch(() => {});
|
||||
|
||||
Reference in New Issue
Block a user