From 14cdaa3187ea38277c7665160034adfc7b11079a Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 15 Oct 2024 15:22:57 +0530 Subject: [PATCH] Check for the last DNS deployment record when deleting --- packages/backend/src/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index 22e6144d..8b5e554a 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -1095,7 +1095,7 @@ export class Service { } await this.laconicRegistry.createApplicationDeploymentRemovalRequest({ - deploymentId: deploymentRecords[0].id, + deploymentId: deploymentRecords[deploymentRecords.length - 1].id, deployerLrn: deployment.deployerLrn }); }